	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxp_nci_i2c_irq_thread_fn
_nxp_nci_i2c_irq_thread_fn:             ## @nxp_nci_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.1:
	movq	%rsi, %rbx
	movl	4(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_24
## %bb.2:
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_24
## %bb.3:
	cmpl	%edi, (%r15)
	jne	LBB0_24
## %bb.4:
	movl	%eax, %edi
	callq	_nci_get_drvdata
	testq	%rax, %rax
	je	LBB0_24
## %bb.5:
	movq	%rax, %r12
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	je	LBB0_6
LBB0_23:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_24:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %eax
	cmpl	$130, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.9:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nxp_nci_i2c_nci_read
	jmp	LBB0_12
LBB0_11:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_10:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nxp_nci_i2c_fw_read
LBB0_12:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_17
## %bb.13:
	testl	%eax, %eax
	jns	LBB0_18
## %bb.14:
	addq	$4, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_nfc_err
	jmp	LBB0_23
LBB0_15:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_19
## %bb.16:
	xorl	%eax, %eax
LBB0_17:
	movl	%eax, (%rbx)
	movq	$0, -40(%rbp)
LBB0_18:
	movl	(%r12), %eax
LBB0_19:
	cmpl	$129, %eax
	je	LBB0_22
## %bb.20:
	cmpl	$128, %eax
	jne	LBB0_23
## %bb.21:
	movl	4(%rbx), %edi
	movq	-40(%rbp), %rsi
	callq	_nci_recv_frame
	jmp	LBB0_23
LBB0_22:
	movl	4(%rbx), %edi
	movq	-40(%rbp), %rsi
	callq	_nxp_nci_fw_recv_frame
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read failed with error %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_nxp_nci_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 nxp_nci_i2c_irq_thread_fn
_nxp_nci_i2c_irq_thread_fn:             ; @nxp_nci_i2c_irq_thread_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	str	xzr, [sp, #8]
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x8, x0
	ldr	w0, [x1, #4]
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x22, [x19, #8]
	cbz	x22, LBB0_7
; %bb.3:
	ldr	w9, [x22]
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.4:
	bl	_nci_get_drvdata
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	w0, #1
	bl	_WARN_ON_ONCE
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	w8, [x21]
	cmp	w8, #130
	b.eq	LBB0_13
; %bb.10:
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.11:
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.12:
	add	x1, sp, #8
	mov	x0, x19
	bl	_nxp_nci_i2c_nci_read
	b	LBB0_15
LBB0_13:
Lloh4:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w2, w8
	b	LBB0_16
LBB0_14:
	add	x1, sp, #8
	mov	x0, x19
	bl	_nxp_nci_i2c_fw_read
LBB0_15:
	mov	x2, x0
LBB0_16:
Lloh7:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w2, w8
	b.eq	LBB0_21
; %bb.17:
	tbz	w2, #31, LBB0_22
; %bb.18:
	add	x0, x22, #4
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfc_err
	b	LBB0_6
LBB0_19:
Lloh12:
	adrp	x9, _EREMOTEIO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EREMOTEIO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cbnz	w9, LBB0_23
; %bb.20:
	mov	w2, #0
LBB0_21:
	str	w2, [x19]
	str	xzr, [sp, #8]
LBB0_22:
	ldr	w8, [x21]
LBB0_23:
	cmp	w8, #129
	b.eq	LBB0_26
; %bb.24:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.25:
	ldr	w0, [x19, #4]
	ldr	x1, [sp, #8]
	bl	_nci_recv_frame
	b	LBB0_6
LBB0_26:
	ldr	w0, [x19, #4]
	ldr	x1, [sp, #8]
	bl	_nxp_nci_fw_recv_frame
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read failed with error %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_nxp_nci_i2c_irq_thread_fn
.subsections_via_symbols
