	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intr_remove_handler            ## -- Begin function intr_remove_handler
	.p2align	4, 0x90
_intr_remove_handler:                   ## @intr_remove_handler
	.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, %rbx
	callq	_intr_handler_source
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_intr_event_remove_handler
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_intrsrc_lock@GOTPCREL(%rip), %rdi
	callq	_sx_xlock
	decq	(%r14)
	jne	LBB0_3
## %bb.2:
	movq	8(%r14), %rax
	movq	_PIC_NO_EOI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*8(%rax)
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_3:
	movq	%r14, %rdi
	callq	_intrcnt_updatename
	movq	_intrsrc_lock@GOTPCREL(%rip), %rdi
	callq	_sx_xunlock
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intrsrc_lock,4,2               ## @intrsrc_lock
	.comm	_PIC_NO_EOI,4,2                 ## @PIC_NO_EOI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intr_remove_handler            ; -- Begin function intr_remove_handler
	.p2align	2
_intr_remove_handler:                   ; @intr_remove_handler
	.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	_intr_handler_source
	mov	x20, x0
	mov	x0, x19
	bl	_intr_event_remove_handler
	mov	x19, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x0, _intrsrc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _intrsrc_lock@GOTPAGEOFF]
	bl	_sx_xlock
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
Lloh2:
	adrp	x9, _PIC_NO_EOI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PIC_NO_EOI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
LBB0_3:
	mov	x0, x20
	bl	_intrcnt_updatename
Lloh5:
	adrp	x0, _intrsrc_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _intrsrc_lock@GOTPAGEOFF]
	bl	_sx_xunlock
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_intrsrc_lock,4,2               ; @intrsrc_lock
	.comm	_PIC_NO_EOI,4,2                 ; @PIC_NO_EOI
.subsections_via_symbols
