	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioapic_register_intr
_ioapic_register_intr:                  ## @ioapic_register_intr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_IOAPIC_AUTO@GOTPCREL(%rip), %r12
	cmpq	%rdx, (%r12)
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_IO_APIC_irq_trigger
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	movq	_IOAPIC_LEVEL@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_IRQ_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	jmp	LBB0_5
LBB0_3:
	movq	_IRQ_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_5:
	movl	%r14d, %edi
	callq	_irq_remapped
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	_IRQ_MOVE_PCNTXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	movq	_handle_fasteoi_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ir_ioapic_chip@GOTPCREL(%rip), %rsi
	jmp	LBB0_8
LBB0_12:
	cmpq	%rbx, (%r12)
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %edi
	callq	_IO_APIC_irq_trigger
	testq	%rax, %rax
	jne	LBB0_15
LBB0_14:
	movq	_IOAPIC_LEVEL@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_15
## %bb.16:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ioapic_chip@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_9
LBB0_10:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ir_ioapic_chip@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_9
LBB0_15:
	movq	_handle_fasteoi_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ioapic_chip@GOTPCREL(%rip), %rsi
LBB0_8:
	leaq	L_.str(%rip), %rcx
LBB0_9:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_irq_chip_and_handler_name  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IOAPIC_AUTO,8,3                ## @IOAPIC_AUTO
	.comm	_IOAPIC_LEVEL,8,3               ## @IOAPIC_LEVEL
	.comm	_IRQ_LEVEL,4,2                  ## @IRQ_LEVEL
	.comm	_IRQ_MOVE_PCNTXT,4,2            ## @IRQ_MOVE_PCNTXT
	.comm	_ir_ioapic_chip,4,2             ## @ir_ioapic_chip
	.comm	_handle_fasteoi_irq,4,2         ## @handle_fasteoi_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fasteoi"

	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
L_.str.1:                               ## @.str.1
	.asciz	"edge"

	.comm	_ioapic_chip,4,2                ## @ioapic_chip
	.no_dead_strip	_ioapic_register_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioapic_register_intr
_ioapic_register_intr:                  ; @ioapic_register_intr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _IOAPIC_AUTO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IOAPIC_AUTO@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IO_APIC_irq_trigger
	cbnz	x0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _IOAPIC_LEVEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IOAPIC_LEVEL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _IRQ_LEVEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_LEVEL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x21]
	bic	w8, w9, w8
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _IRQ_LEVEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_LEVEL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
LBB0_5:
	str	w8, [x21]
	mov	x0, x19
	bl	_irq_remapped
	cbz	x0, LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _IRQ_MOVE_PCNTXT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_MOVE_PCNTXT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	cbz	x20, LBB0_12
; %bb.7:
Lloh14:
	adrp	x8, _handle_fasteoi_irq@GOTPAGE
Lloh15:
	ldr	x8, [x8, _handle_fasteoi_irq@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, _ir_ioapic_chip@GOTPAGE
Lloh18:
	ldr	x1, [x1, _ir_ioapic_chip@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	ldr	x8, [x22]
	cmp	x8, x20
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_IO_APIC_irq_trigger
	cbnz	x0, LBB0_14
LBB0_10:
Lloh19:
	adrp	x8, _IOAPIC_LEVEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IOAPIC_LEVEL@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_14
; %bb.11:
Lloh22:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh23:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x1, _ioapic_chip@GOTPAGE
Lloh26:
	ldr	x1, [x1, _ioapic_chip@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh27:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh28:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x1, _ir_ioapic_chip@GOTPAGE
Lloh31:
	ldr	x1, [x1, _ir_ioapic_chip@GOTPAGEOFF]
LBB0_13:
Lloh32:
	adrp	x3, l_.str.1@PAGE
Lloh33:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh34:
	adrp	x8, _handle_fasteoi_irq@GOTPAGE
Lloh35:
	ldr	x8, [x8, _handle_fasteoi_irq@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x1, _ioapic_chip@GOTPAGE
Lloh38:
	ldr	x1, [x1, _ioapic_chip@GOTPAGEOFF]
LBB0_15:
Lloh39:
	adrp	x3, l_.str@PAGE
Lloh40:
	add	x3, x3, l_.str@PAGEOFF
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_irq_chip_and_handler_name
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_IOAPIC_AUTO,8,3                ; @IOAPIC_AUTO
	.comm	_IOAPIC_LEVEL,8,3               ; @IOAPIC_LEVEL
	.comm	_IRQ_LEVEL,4,2                  ; @IRQ_LEVEL
	.comm	_IRQ_MOVE_PCNTXT,4,2            ; @IRQ_MOVE_PCNTXT
	.comm	_ir_ioapic_chip,4,2             ; @ir_ioapic_chip
	.comm	_handle_fasteoi_irq,4,2         ; @handle_fasteoi_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fasteoi"

	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
l_.str.1:                               ; @.str.1
	.asciz	"edge"

	.comm	_ioapic_chip,4,2                ; @ioapic_chip
	.no_dead_strip	_ioapic_register_intr
.subsections_via_symbols
