	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfcmrvl_i2c_nci_send
_nfcmrvl_i2c_nci_send:                  ## @nfcmrvl_i2c_nci_send
	.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
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	movq	8(%rdi), %r14
	movq	_NFCMRVL_PHY_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movl	4(%r14), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_i2c_master_send
	movq	_EREMOTEIO@GOTPCREL(%rip), %r15
	movl	%eax, %ecx
	addl	(%r15), %ecx
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nfc_info
	movl	$6000, %edi                     ## imm = 0x1770
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movl	4(%r14), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_i2c_master_send
LBB0_4:
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movl	(%rbx), %ecx
	xorl	%r12d, %r12d
	cmpl	%ecx, %eax
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_nfc_err
	xorl	%r12d, %r12d
	subl	(%r15), %r12d
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree_skb
	movl	%r12d, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFCMRVL_PHY_ERROR,4,2          ## @NFCMRVL_PHY_ERROR
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip may sleep, retry\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid length sent: %u (expected %u)\n"

	.no_dead_strip	_nfcmrvl_i2c_nci_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfcmrvl_i2c_nci_send
_nfcmrvl_i2c_nci_send:                  ; @nfcmrvl_i2c_nci_send
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x1, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _NFCMRVL_PHY_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFCMRVL_PHY_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_2:
	ldr	w0, [x21, #4]
	ldp	w2, w1, [x19]
	bl	_i2c_master_send
	mov	x20, x0
Lloh6:
	adrp	x22, _EREMOTEIO@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EREMOTEIO@GOTPAGEOFF]
	ldr	w8, [x22]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfc_info
	mov	w0, #6000
	mov	w1, #10000
	bl	_usleep_range
	ldr	w0, [x21, #4]
	ldp	w2, w1, [x19]
	bl	_i2c_master_send
	mov	x20, x0
LBB0_4:
	tbnz	w20, #31, LBB0_9
; %bb.5:
	ldr	w3, [x19]
	cmp	w20, w3
	b.ne	LBB0_7
; %bb.6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_nfc_err
	ldr	w8, [x22]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_kfree_skb
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NFCMRVL_PHY_ERROR,4,2          ; @NFCMRVL_PHY_ERROR
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip may sleep, retry\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid length sent: %u (expected %u)\n"

	.no_dead_strip	_nfcmrvl_i2c_nci_send
.subsections_via_symbols
