	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function microread_i2c_irq_thread_fn
_microread_i2c_irq_thread_fn:           ## @microread_i2c_irq_thread_fn
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	cmpl	$0, (%rbx)
	jne	LBB0_10
## %bb.4:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_microread_i2c_read
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_6
## %bb.5:
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_2:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_10:
	movl	(%r14), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_10
## %bb.7:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_10
## %bb.8:
	movl	4(%rbx), %edi
	movq	-24(%rbp), %rsi
LBB0_9:
	callq	_nfc_hci_recv_frame
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.no_dead_strip	_microread_i2c_irq_thread_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function microread_i2c_irq_thread_fn
_microread_i2c_irq_thread_fn:           ; @microread_i2c_irq_thread_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	xzr, [sp, #8]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cbnz	w8, LBB0_10
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_microread_i2c_read
Lloh0:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_6
; %bb.4:
	str	w0, [x19]
	ldr	w0, [x19, #4]
	mov	x1, #0
	b	LBB0_9
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON_ONCE
Lloh3:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_10
; %bb.7:
Lloh8:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	w0, [x19, #4]
	ldr	x1, [sp, #8]
LBB0_9:
	bl	_nfc_hci_recv_frame
LBB0_10:
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.no_dead_strip	_microread_i2c_irq_thread_fn
.subsections_via_symbols
