	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EXI_GetID                      ## -- Begin function EXI_GetID
	.p2align	4, 0x90
_EXI_GetID:                             ## @EXI_GetID
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_eximap@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rdi, %r14
	shlq	$4, %r14
	leaq	(%r14,%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edx, %edx
	movq	_EXI_DEVICE_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdi, %rax
	jbe	LBB0_8
## %bb.1:
	cmpq	%r15, %rcx
	jne	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	___exi_probe
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_last_exi_idtime@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx,%rbx,8), %rax
	jne	LBB0_6
## %bb.5:
	movl	8(%r13,%r14), %eax
	movl	%eax, (%r12)
	movl	$1, %r12d
	jmp	LBB0_19
LBB0_3:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_6:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___exi_attach
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movq	_last_exi_idtime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EXI_DEVICE_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_8:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movl	$0, %esi
	cmpq	%r15, %rcx
	jne	LBB0_10
## %bb.9:
	movq	___unlocked_handler@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
LBB0_10:
	cmpq	%rbx, %rax
	cmovaq	%rsi, %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_EXI_Lock
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_EXI_SPEED1MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_EXI_Select
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.12:
	movl	$0, -52(%rbp)
	movq	_EXI_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_EXI_Imm
	movq	%rbx, %rdi
	callq	_EXI_Sync
	movq	_EXI_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	xorl	%r8d, %r8d
	callq	_EXI_Imm
	movq	%rbx, %rdi
	callq	_EXI_Sync
	movq	%rbx, %rdi
	callq	_EXI_Deselect
	movq	%rbx, %rdi
	callq	_EXI_Unlock
LBB0_13:
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jbe	LBB0_19
## %bb.14:
	movq	_EXI_DEVICE_0@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_19
## %bb.15:
	movq	%rbx, %rdi
	callq	_EXI_Detach
	callq	__CPU_ISR_Disable
	movq	_last_exi_idtime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax,%rbx,8), %rcx
	jne	LBB0_16
## %bb.17:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%r13,%r14)
	movl	$1, %r12d
	jmp	LBB0_18
LBB0_16:
	xorl	%r12d, %r12d
LBB0_18:
	callq	__CPU_ISR_Restore
LBB0_19:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eximap,8,3                     ## @eximap
	.comm	_EXI_CHANNEL_2,8,3              ## @EXI_CHANNEL_2
	.comm	_EXI_DEVICE_0,8,3               ## @EXI_DEVICE_0
	.comm	_last_exi_idtime,8,3            ## @last_exi_idtime
	.comm	___unlocked_handler,8,3         ## @__unlocked_handler
	.comm	_EXI_SPEED1MHZ,4,2              ## @EXI_SPEED1MHZ
	.comm	_EXI_WRITE,4,2                  ## @EXI_WRITE
	.comm	_EXI_READ,4,2                   ## @EXI_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EXI_GetID                      ; -- Begin function EXI_GetID
	.p2align	2
_EXI_GetID:                             ; @EXI_GetID
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _eximap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eximap@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	add	x24, x23, x0, lsl #4
Lloh3:
	adrp	x25, _EXI_CHANNEL_2@GOTPAGE
Lloh4:
	ldr	x25, [x25, _EXI_CHANNEL_2@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh5:
	adrp	x26, _EXI_DEVICE_0@GOTPAGE
Lloh6:
	ldr	x26, [x26, _EXI_DEVICE_0@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x0
	ccmp	x9, x1, #0, hi
	b.eq	LBB0_8
; %bb.1:
	mov	x27, #0
LBB0_2:
	cmp	x9, x21
	ccmp	x8, x20, #0, eq
Lloh7:
	adrp	x8, ___unlocked_handler@GOTPAGE
Lloh8:
	ldr	x8, [x8, ___unlocked_handler@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	csel	x2, x8, xzr, hi
	mov	x0, x20
	mov	x1, x21
	bl	_EXI_Lock
	mov	x22, x0
	cbz	x0, LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _EXI_SPEED1MHZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXI_SPEED1MHZ@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_EXI_Select
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:
	str	wzr, [sp, #12]
Lloh13:
	adrp	x8, _EXI_WRITE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXI_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #2
	mov	x4, #0
	bl	_EXI_Imm
	mov	x0, x20
	bl	_EXI_Sync
Lloh16:
	adrp	x8, _EXI_READ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXI_READ@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	mov	x4, #0
	bl	_EXI_Imm
	mov	x0, x20
	bl	_EXI_Sync
	mov	x0, x20
	bl	_EXI_Deselect
	mov	x0, x20
	bl	_EXI_Unlock
LBB0_5:
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x20
	ccmp	x9, x21, #0, hi
	b.ne	LBB0_16
; %bb.6:
	mov	x0, x20
	bl	_EXI_Detach
	bl	__CPU_ISR_Disable
Lloh19:
	adrp	x8, _last_exi_idtime@GOTPAGE
Lloh20:
	ldr	x8, [x8, _last_exi_idtime@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	cmp	x27, x8
	b.ne	LBB0_14
; %bb.7:
	str	x27, [x24]
	ldr	w8, [x19]
	add	x9, x23, x20, lsl #4
	str	w8, [x9, #8]
	mov	w22, #1
	b	LBB0_15
LBB0_8:
	mov	x0, x20
	bl	___exi_probe
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x8, [x24]
Lloh22:
	adrp	x22, _last_exi_idtime@GOTPAGE
Lloh23:
	ldr	x22, [x22, _last_exi_idtime@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x9, [x9, x20, lsl #3]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	add	x8, x23, x20, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [x19]
	mov	w22, #1
	b	LBB0_16
LBB0_11:
	mov	x0, x20
	mov	x1, #0
	bl	___exi_attach
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x22]
	ldr	x27, [x8, x20, lsl #3]
	ldr	x8, [x25]
	ldr	x9, [x26]
	b	LBB0_2
LBB0_13:
	mov	x22, #0
	b	LBB0_16
LBB0_14:
	mov	x22, #0
LBB0_15:
	bl	__CPU_ISR_Restore
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_eximap,8,3                     ; @eximap
	.comm	_EXI_CHANNEL_2,8,3              ; @EXI_CHANNEL_2
	.comm	_EXI_DEVICE_0,8,3               ; @EXI_DEVICE_0
	.comm	_last_exi_idtime,8,3            ; @last_exi_idtime
	.comm	___unlocked_handler,8,3         ; @__unlocked_handler
	.comm	_EXI_SPEED1MHZ,4,2              ; @EXI_SPEED1MHZ
	.comm	_EXI_WRITE,4,2                  ; @EXI_WRITE
	.comm	_EXI_READ,4,2                   ; @EXI_READ
.subsections_via_symbols
