	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sensor_read_8
_sensor_read_8:                         ## @sensor_read_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	_STK1135_REG_SBUSR@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_reg_w
	movq	_STK1135_REG_SICTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	callq	_stk1135_serial_wait_ready
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%r14), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_reg_r                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STK1135_REG_SBUSR,8,3          ## @STK1135_REG_SBUSR
	.comm	_STK1135_REG_SICTL,8,3          ## @STK1135_REG_SICTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor read failed\n"

	.no_dead_strip	_sensor_read_8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sensor_read_8
_sensor_read_8:                         ; @sensor_read_8
	.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	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _STK1135_REG_SBUSR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _STK1135_REG_SBUSR@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_reg_w
Lloh2:
	adrp	x8, _STK1135_REG_SICTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STK1135_REG_SICTL@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #32
	bl	_reg_w
	mov	x0, x19
	bl	_stk1135_serial_wait_ready
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x20]
	add	x1, x8, #1
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reg_r
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STK1135_REG_SBUSR,8,3          ; @STK1135_REG_SBUSR
	.comm	_STK1135_REG_SICTL,8,3          ; @STK1135_REG_SICTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor read failed\n"

	.no_dead_strip	_sensor_read_8
.subsections_via_symbols
