	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sensor_write_8
_sensor_write_8:                        ## @sensor_write_8
	.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
	movl	%edx, %r14d
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	_STK1135_REG_SBUSW@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_reg_w
	movq	(%r15), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_reg_w
	movq	_STK1135_REG_SICTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	callq	_stk1135_serial_wait_ready
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STK1135_REG_SBUSW,8,3          ## @STK1135_REG_SBUSW
	.comm	_STK1135_REG_SICTL,8,3          ## @STK1135_REG_SICTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor write failed\n"

	.no_dead_strip	_sensor_write_8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sensor_write_8
_sensor_write_8:                        ; @sensor_write_8
	.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, x2
	mov	x2, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _STK1135_REG_SBUSW@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STK1135_REG_SBUSW@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_reg_w
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	x0, x20
	mov	x2, x19
	bl	_reg_w
Lloh2:
	adrp	x8, _STK1135_REG_SICTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STK1135_REG_SICTL@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_reg_w
	mov	x0, x20
	bl	_stk1135_serial_wait_ready
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_pr_err
LBB0_2:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STK1135_REG_SBUSW,8,3          ; @STK1135_REG_SBUSW
	.comm	_STK1135_REG_SICTL,8,3          ; @STK1135_REG_SICTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor write failed\n"

	.no_dead_strip	_sensor_write_8
.subsections_via_symbols
