	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __exi_attach
___exi_attach:                          ## @__exi_attach
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_eximap@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	callq	__CPU_ISR_Disable
	movq	_EXI_FLAG_ATTACH@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%r15,%rbx,8)
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	___exi_probe
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	___exi_clearirqs
	movl	%r14d, 4(%r15,%rbx,8)
	movq	_IRQ_EXI0_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IRQMASK
	leal	(%rbx,%rbx,2), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rax
	movq	%rax, %rdi
	callq	___UnmaskIrq
	movl	(%r12), %eax
	orl	%eax, (%r15,%rbx,8)
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	callq	__CPU_ISR_Restore
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eximap,8,3                     ## @eximap
	.comm	_EXI_FLAG_ATTACH,4,2            ## @EXI_FLAG_ATTACH
	.comm	_IRQ_EXI0_EXT,4,2               ## @IRQ_EXI0_EXT
	.no_dead_strip	___exi_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __exi_attach
___exi_attach:                          ; @__exi_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _eximap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eximap@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	bl	__CPU_ISR_Disable
	add	x22, x24, x19, lsl #3
	ldr	w8, [x22]
Lloh3:
	adrp	x23, _EXI_FLAG_ATTACH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EXI_FLAG_ATTACH@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	___exi_probe
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	w3, #0
	bl	___exi_clearirqs
	add	x8, x24, x19, lsl #3
	str	w21, [x8, #4]
Lloh5:
	adrp	x8, _IRQ_EXI0_EXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_EXI0_EXT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_IRQMASK
	add	x8, x19, x19, lsl #1
	lsr	x0, x0, x8
	bl	___UnmaskIrq
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	bl	__CPU_ISR_Restore
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_eximap,8,3                     ; @eximap
	.comm	_EXI_FLAG_ATTACH,4,2            ; @EXI_FLAG_ATTACH
	.comm	_IRQ_EXI0_EXT,4,2               ; @IRQ_EXI0_EXT
	.no_dead_strip	___exi_attach
.subsections_via_symbols
