	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vatpic_notify_intr
_vatpic_notify_intr:                    ## @vatpic_notify_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_VATPIC_LOCKED
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movq	8(%r14), %rbx
	cmpl	$0, 16(%rbx)
	je	LBB0_1
LBB0_3:
	movl	28(%rbx), %edx
	movl	20(%rbx), %r8d
	movl	24(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_VATPIC_CTR3
	jmp	LBB0_4
LBB0_1:
	leaq	16(%rbx), %rdi
	callq	_vatpic_get_highest_irrpin
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.2:
	movl	28(%rbx), %ecx
	movl	20(%rbx), %r9d
	movl	24(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_VATPIC_CTR4
	movl	$1, 16(%rbx)
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	callq	_vatpic_set_pinstate
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_vatpic_set_pinstate
LBB0_4:
	movq	8(%r14), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_5
LBB0_7:
	movl	12(%rbx), %edx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_VATPIC_CTR3                    ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	callq	_vatpic_get_highest_irrpin
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.6:
	movl	12(%rbx), %ecx
	movl	4(%rbx), %r9d
	movl	8(%rbx), %r8d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_VATPIC_CTR4
	movl	$1, (%rbx)
	movl	(%r14), %edi
	movq	_APIC_LVT_LINT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %esi
	callq	_lapic_set_local_intr
	movl	(%r14), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vioapic_pulse_irq              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vatpic_notify_intr not locked"

L_.str.1:                               ## @.str.1
	.asciz	"atpic slave notify pin = %d (imr 0x%x irr 0x%x isr 0x%x)"

L_.str.2:                               ## @.str.2
	.asciz	"atpic slave no eligible interrupts (imr 0x%x irr 0x%x isr 0x%x)"

L_.str.3:                               ## @.str.3
	.asciz	"atpic master notify pin = %d (imr 0x%x irr 0x%x isr 0x%x)"

	.comm	_APIC_LVT_LINT0,4,2             ## @APIC_LVT_LINT0
L_.str.4:                               ## @.str.4
	.asciz	"atpic master no eligible interrupts (imr 0x%x irr 0x%x isr 0x%x)"

	.no_dead_strip	_vatpic_notify_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vatpic_notify_intr
_vatpic_notify_intr:                    ; @vatpic_notify_intr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_VATPIC_LOCKED
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x20, [x19, #8]
	mov	x0, x20
	ldr	w8, [x0, #16]!
	cbz	w8, LBB0_2
LBB0_1:
	ldp	w3, w2, [x20, #24]
	ldr	w4, [x20, #20]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_VATPIC_CTR3
	b	LBB0_4
LBB0_2:
	bl	_vatpic_get_highest_irrpin
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.3:
	mov	x2, x0
	ldp	w4, w3, [x20, #24]
	ldr	w5, [x20, #20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_VATPIC_CTR4
	mov	w8, #1
	str	w8, [x20, #16]
	mov	x0, x19
	mov	w1, #2
	mov	w2, #1
	bl	_vatpic_set_pinstate
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	bl	_vatpic_set_pinstate
LBB0_4:
	ldr	x20, [x19, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
LBB0_5:
	ldp	w3, w2, [x20, #8]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	ldr	w4, [x20, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_VATPIC_CTR3
LBB0_6:
	mov	x0, x20
	bl	_vatpic_get_highest_irrpin
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.7:
	mov	x2, x0
	ldp	w4, w3, [x20, #8]
	ldr	w5, [x20, #4]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_VATPIC_CTR4
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _APIC_LVT_LINT0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _APIC_LVT_LINT0@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w1, #-1
	bl	_lapic_set_local_intr
	ldr	w0, [x19]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vioapic_pulse_irq
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vatpic_notify_intr not locked"

l_.str.1:                               ; @.str.1
	.asciz	"atpic slave notify pin = %d (imr 0x%x irr 0x%x isr 0x%x)"

l_.str.2:                               ; @.str.2
	.asciz	"atpic slave no eligible interrupts (imr 0x%x irr 0x%x isr 0x%x)"

l_.str.3:                               ; @.str.3
	.asciz	"atpic master notify pin = %d (imr 0x%x irr 0x%x isr 0x%x)"

	.comm	_APIC_LVT_LINT0,4,2             ; @APIC_LVT_LINT0
l_.str.4:                               ; @.str.4
	.asciz	"atpic master no eligible interrupts (imr 0x%x irr 0x%x isr 0x%x)"

	.no_dead_strip	_vatpic_notify_intr
.subsections_via_symbols
