	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_i2c_xfer_common
_omap_i2c_xfer_common:                  ## @omap_i2c_xfer_common
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_i2c_get_adapdata
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_omap_i2c_wait_for_bb_valid
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	%rbx, %rdi
	callq	_omap_i2c_wait_for_bb
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_16
## %bb.3:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	*%rax
LBB0_5:
	testl	%r12d, %r12d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.6:
	leal	-1(%r12), %r15d
	movl	%r12d, %r12d
	shlq	$2, %r15
	shlq	$2, %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rsi
	xorl	%edx, %edx
	cmpq	%r13, %r15
	sete	%dl
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_omap_i2c_xfer_msg
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %r13
	cmpq	%r13, %r12
	jne	LBB0_7
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %r14d
LBB0_16:
	movl	4(%rbx), %edi
	callq	_pm_runtime_mark_last_busy
	movl	4(%rbx), %edi
	callq	_pm_runtime_put_autosuspend
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testl	%r14d, %r14d
	jne	LBB0_14
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %r14d
LBB0_14:
	movq	%rbx, %rdi
	callq	_omap_i2c_wait_for_bb
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.15:
	movl	4(%rbx), %edi
	movl	$-1, %esi
	callq	*%rcx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_omap_i2c_xfer_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_i2c_xfer_common
_omap_i2c_xfer_common:                  ; @omap_i2c_xfer_common
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_i2c_get_adapdata
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_omap_i2c_wait_for_bb_valid
	tbnz	w0, #31, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_omap_i2c_wait_for_bb
	mov	x24, x0
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldp	w1, w0, [x19]
	blr	x8
LBB0_5:
	subs	w25, w20, #1
	b.lt	LBB0_11
; %bb.6:
	mov	w26, w20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x25, #0
	cset	w2, eq
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	bl	_omap_i2c_xfer_msg
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x25, x25, #1
	add	x22, x22, #4
	subs	x26, x26, #1
	b.ne	LBB0_7
	b	LBB0_12
LBB0_9:
	mov	x24, x0
LBB0_10:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put_autosuspend
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	cbnz	w24, LBB0_14
LBB0_12:
	mov	x24, x20
	b	LBB0_14
LBB0_13:
	mov	x24, x0
LBB0_14:
	mov	x0, x19
	bl	_omap_i2c_wait_for_bb
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.15:
	ldr	w0, [x19, #4]
	mov	w1, #-1
	blr	x8
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_omap_i2c_xfer_common
.subsections_via_symbols
