	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geni_i2c_xfer
_geni_i2c_xfer:                         ## @geni_i2c_xfer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_i2c_get_adapdata
	movq	%rax, %r15
	movq	$0, (%rax)
	leaq	20(%rax), %rdi
	callq	_reinit_completion
	movl	16(%r15), %edi
	callq	_pm_runtime_get_sync
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_qcom_geni_i2c_conf
	testl	%r14d, %r14d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.3:
	leal	-1(%r14), %r13d
	movl	%r14d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, %eax
	cmpq	%r13, %r14
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_STOP_STRETCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edx
	movq	_SLV_ADDR_SHFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %edx
	movq	_SLV_ADDR_MSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	orl	%eax, %edx
	movq	%rbx, 8(%r15)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_geni_i2c_rx_one_msg
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_geni_i2c_tx_one_msg
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	addq	$8, %rbx
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_12
LBB0_1:
	movl	16(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
	movl	16(%r15), %edi
	callq	_pm_runtime_put_noidle
	movl	16(%r15), %edi
	callq	_pm_runtime_set_suspended
	jmp	LBB0_14
LBB0_11:
	testl	%r12d, %r12d
	jne	LBB0_13
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r12d
LBB0_13:
	movl	16(%r15), %edi
	callq	_pm_runtime_mark_last_busy
	movl	16(%r15), %edi
	callq	_pm_runtime_put_autosuspend
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error turning SE resources:%d\n"

	.comm	_STOP_STRETCH,4,2               ## @STOP_STRETCH
	.comm	_SLV_ADDR_SHFT,4,2              ## @SLV_ADDR_SHFT
	.comm	_SLV_ADDR_MSK,4,2               ## @SLV_ADDR_MSK
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_geni_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geni_i2c_xfer
_geni_i2c_xfer:                         ; @geni_i2c_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	mov	x19, x0
	str	xzr, [x0], #20
	bl	_reinit_completion
	ldr	w0, [x19, #16]
	bl	_pm_runtime_get_sync
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_qcom_geni_i2c_conf
	subs	w23, w20, #1
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	b.lt	LBB0_9
; %bb.2:
	mov	x24, #0
Lloh0:
	adrp	x25, _STOP_STRETCH@GOTPAGE
Lloh1:
	ldr	x25, [x25, _STOP_STRETCH@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SLV_ADDR_SHFT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SLV_ADDR_SHFT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _SLV_ADDR_MSK@GOTPAGE
Lloh5:
	ldr	x27, [x27, _SLV_ADDR_MSK@GOTPAGEOFF]
	mov	w28, w20
Lloh6:
	adrp	x20, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x20, [x20, _I2C_M_RD@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_geni_i2c_tx_one_msg
	cbnz	w0, LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	add	x21, x21, #8
	cmp	x28, x24
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	x24, x23
	csel	w8, w8, wzr, lo
	ldr	w9, [x26]
	ldp	w10, w11, [x21]
	lsl	w9, w10, w9
	ldr	w10, [x27]
	and	w9, w9, w10
	orr	w2, w9, w8
	str	x21, [x19, #8]
	ldr	w8, [x20]
	mov	x0, x19
	mov	x1, x21
	tst	w8, w11
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_geni_i2c_rx_one_msg
	cbz	w0, LBB0_4
LBB0_7:
	mov	x22, x0
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19, #16]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	ldr	w0, [x19, #16]
	bl	_pm_runtime_put_noidle
	ldr	w0, [x19, #16]
	bl	_pm_runtime_set_suspended
	b	LBB0_12
LBB0_9:
	cbnz	w22, LBB0_11
LBB0_10:
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
LBB0_11:
	ldr	w0, [x19, #16]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #16]
	bl	_pm_runtime_put_autosuspend
	stp	xzr, xzr, [x19]
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error turning SE resources:%d\n"

	.comm	_STOP_STRETCH,4,2               ; @STOP_STRETCH
	.comm	_SLV_ADDR_SHFT,4,2              ; @SLV_ADDR_SHFT
	.comm	_SLV_ADDR_MSK,4,2               ; @SLV_ADDR_MSK
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_geni_i2c_xfer
.subsections_via_symbols
