	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxp_nci_i2c_write
_nxp_nci_i2c_write:                     ## @nxp_nci_i2c_write
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	movq	8(%rdi), %r14
	movl	(%rsi), %edx
	movl	4(%rsi), %esi
	movq	%r14, %rdi
	callq	_i2c_master_send
	testl	%eax, %eax
	jns	LBB0_4
## %bb.2:
	movl	$110, %edi
	callq	_msleep
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%r14, %rdi
	callq	_i2c_master_send
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movl	%ebx, %eax
LBB0_4:
	movl	(%r15), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nfc_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nfc_err
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %d on I2C send\n"

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

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_nxp_nci_i2c_write
.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_write
_nxp_nci_i2c_write:                     ; @nxp_nci_i2c_write
	.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
	ldr	x20, [x0]
	cbnz	x20, LBB0_7
; %bb.1:
	mov	x21, x1
	ldr	x19, [x0, #8]
	ldr	w1, [x1, #4]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_i2c_master_send
	mov	x20, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
	mov	w0, #110
	bl	_msleep
	ldp	w2, w1, [x21]
	mov	x0, x19
	bl	_i2c_master_send
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
LBB0_3:
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w20, #0
	b	LBB0_7
LBB0_5:
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nfc_err
Lloh2:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nfc_err
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %d on I2C send\n"

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

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_nxp_nci_i2c_write
.subsections_via_symbols
