	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_nci_i2c_write
_st_nci_i2c_write:                      ## @st_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rdi), %r14
	movl	(%rsi), %edx
	movl	4(%rsi), %esi
	movq	%r14, %rdi
	callq	_i2c_master_send
	movl	%eax, %ecx
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$4000, %esi                     ## imm = 0xFA0
	callq	_usleep_range
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_i2c_master_send
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	cmpl	(%rbx), %ecx
	je	LBB0_5
## %bb.4:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_st_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 st_nci_i2c_write
_st_nci_i2c_write:                      ; @st_nci_i2c_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x0
	ldr	x9, [x0]
	ldr	x0, [x9]
	cbnz	x0, LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	x20, [x8, #8]
	ldr	w1, [x1, #4]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_i2c_master_send
                                        ; kill: def $w0 killed $w0 def $x0
	tbz	w0, #31, LBB0_3
; %bb.2:
	mov	w0, #1000
	mov	w1, #4000
	bl	_usleep_range
	ldp	w2, w1, [x19]
	mov	x0, x20
	bl	_i2c_master_send
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_6
LBB0_3:
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_st_nci_i2c_write
.subsections_via_symbols
