	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk1160_i2c_read_reg
_stk1160_i2c_read_reg:                  ## @stk1160_i2c_read_reg
	.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	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	_STK1160_SICTL_SDA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_stk1160_write_reg
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_STK1160_SBUSR_RA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_stk1160_write_reg
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	_STK1160_SICTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_stk1160_write_reg
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_stk1160_i2c_busy_wait
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	_STK1160_SBUSR_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_stk1160_read_reg
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STK1160_SICTL_SDA,4,2          ## @STK1160_SICTL_SDA
	.comm	_STK1160_SBUSR_RA,4,2           ## @STK1160_SBUSR_RA
	.comm	_STK1160_SICTL,4,2              ## @STK1160_SICTL
	.comm	_STK1160_SBUSR_RD,4,2           ## @STK1160_SBUSR_RD
	.no_dead_strip	_stk1160_i2c_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk1160_i2c_read_reg
_stk1160_i2c_read_reg:                  ; @stk1160_i2c_read_reg
	.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, x3
	mov	x21, x2
	mov	x2, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STK1160_SICTL_SDA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STK1160_SICTL_SDA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_stk1160_write_reg
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _STK1160_SBUSR_RA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STK1160_SBUSR_RA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_stk1160_write_reg
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _STK1160_SICTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STK1160_SICTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #32
	bl	_stk1160_write_reg
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_stk1160_i2c_busy_wait
	tbnz	w0, #31, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _STK1160_SBUSR_RD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STK1160_SBUSR_RD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_stk1160_read_reg
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_5:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STK1160_SICTL_SDA,4,2          ; @STK1160_SICTL_SDA
	.comm	_STK1160_SBUSR_RA,4,2           ; @STK1160_SBUSR_RA
	.comm	_STK1160_SICTL,4,2              ; @STK1160_SICTL
	.comm	_STK1160_SBUSR_RD,4,2           ; @STK1160_SBUSR_RD
	.no_dead_strip	_stk1160_i2c_read_reg
.subsections_via_symbols
