	.file	"789157.c"
	.intel_syntax noprefix
	.text
	.globl	idt_descriptors
	.bss
	.align 32
	.type	idt_descriptors, @object
	.size	idt_descriptors, 2048
idt_descriptors:
	.zero	2048
	.globl	idt_struct
	.align 8
	.type	idt_struct, @object
	.size	idt_struct, 10
idt_struct:
	.zero	10
	.globl	idtr
	.align 8
	.type	idtr, @object
	.size	idtr, 10
idtr:
	.zero	10
	.text
	.globl	setup_gate_descriptor
	.type	setup_gate_descriptor, @function
setup_gate_descriptor:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, edx
	mov	edx, ecx
	mov	WORD PTR -12[rbp], ax
	mov	eax, edx
	mov	BYTE PTR -16[rbp], al
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, idt_descriptors[rip]
	mov	WORD PTR [rdx+rax], cx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, idt_descriptors[rip+2]
	movzx	eax, WORD PTR -12[rbp]
	mov	WORD PTR [rcx+rdx], ax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, idt_descriptors[rip+4]
	mov	BYTE PTR [rdx+rax], 0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, idt_descriptors[rip+5]
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR [rcx+rdx], al
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, idt_descriptors[rip+6]
	mov	WORD PTR [rdx+rax], cx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	setup_gate_descriptor, .-setup_gate_descriptor
	.globl	setup_interrupt_gate
	.type	setup_interrupt_gate, @function
setup_interrupt_gate:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 142
	mov	edx, 8
	mov	edi, eax
	call	setup_gate_descriptor
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	setup_interrupt_gate, .-setup_interrupt_gate
	.type	load_idt, @function
load_idt:
.LFB2:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
#APP
# 117 "the_stack_data/789157.c" 1
	lidt [rax]
# 0 "" 2
#NO_APP
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	load_idt, .-load_idt
	.section	.rodata
.LC0:
	.string	"&idtr : "
	.text
	.globl	setup_idtr
	.type	setup_idtr, @function
setup_idtr:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rax, idt_descriptors[rip]
	mov	QWORD PTR idtr[rip+2], rax
	mov	WORD PTR idtr[rip], 2048
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	ctm_puts@PLT
	lea	rdi, idtr[rip]
	mov	eax, 0
	call	ctm_put_pointer@PLT
	lea	rdi, idtr[rip]
	call	load_idt
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	setup_idtr, .-setup_idtr
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"789157.c"
	.text
	.comm	idt_descriptors,2048,4
	.comm	idt_struct,6,4
	.comm	idtr,6,4
	.align	2
	.global	setup_gate_descriptor
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_gate_descriptor, %function
setup_gate_descriptor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r1, r2
	mov	r2, r3
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r2
	strb	r3, [fp, #-15]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r1, .L2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r1, r3
	and	r1, r2, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3]
	lsr	r2, r2, #8
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #1]
	ldr	r2, .L2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #2]
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #3]
	ldr	r2, .L2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r2, .L2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r2, [fp, #-15]
	strb	r2, [r3, #5]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r1, .L2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r1, r3
	and	r1, r2, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #6]
	lsr	r2, r2, #8
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #7]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	idt_descriptors
	.size	setup_gate_descriptor, .-setup_gate_descriptor
	.align	2
	.global	setup_interrupt_gate
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_interrupt_gate, %function
setup_interrupt_gate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	mov	r3, #142
	mov	r2, #8
	ldr	r0, [fp, #-8]
	bl	setup_gate_descriptor
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	setup_interrupt_gate, .-setup_interrupt_gate
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_idt, %function
load_idt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	.syntax divided
@ 117 "the_stack_data/789157.c" 1
	lidt [r3]
@ 0 "" 2
	.arm
	.syntax unified
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	load_idt, .-load_idt
	.section	.rodata
	.align	2
.LC0:
	.ascii	"&idtr : \000"
	.text
	.align	2
	.global	setup_idtr
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_idtr, %function
setup_idtr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L7
	ldr	r3, .L7+4
	and	r1, r2, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #2]
	lsr	r1, r2, #8
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #3]
	lsr	r1, r2, #16
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #4]
	lsr	r2, r2, #24
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #5]
	ldr	r3, .L7+4
	mov	r2, #0
	strb	r2, [r3]
	mov	r2, #0
	orr	r2, r2, #8
	strb	r2, [r3, #1]
	ldr	r0, .L7+8
	bl	ctm_puts
	ldr	r0, .L7+4
	bl	ctm_put_pointer
	ldr	r0, .L7+4
	bl	load_idt
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	idt_descriptors
	.word	idtr
	.word	.LC0
	.size	setup_idtr, .-setup_idtr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
