	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioapic_disable_intr
_ioapic_disable_intr:                   ## @ioapic_disable_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	%r14, %rsi
	callq	_apic_disable_vector
	movq	_icu_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mtx_lock_spin
	movl	$1, 8(%rbx)
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_ioapic_program_intpin
	movq	%r15, %rdi
	callq	_mtx_unlock_spin
	movl	12(%rbx), %edx
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_apic_free_vector               ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_icu_lock,4,2                   ## @icu_lock
	.no_dead_strip	_ioapic_disable_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioapic_disable_intr
_ioapic_disable_intr:                   ; @ioapic_disable_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
	ldr	x19, [x0]
	cbz	x19, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #16]
	mov	x1, x19
	bl	_apic_disable_vector
Lloh0:
	adrp	x21, _icu_lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _icu_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_mtx_lock_spin
	mov	w8, #1
	str	w8, [x20, #8]
	str	xzr, [x20]
	mov	x0, x20
	bl	_ioapic_program_intpin
	mov	x0, x21
	bl	_mtx_unlock_spin
	ldp	w2, w0, [x20, #12]
	mov	x1, 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	_apic_free_vector
LBB0_2:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_icu_lock,4,2                   ; @icu_lock
	.no_dead_strip	_ioapic_disable_intr
.subsections_via_symbols
