	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_i2c_sw_engine_submit_channel_request ## -- Begin function dce_i2c_sw_engine_submit_channel_request
	.p2align	4, 0x90
_dce_i2c_sw_engine_submit_channel_request: ## @dce_i2c_sw_engine_submit_channel_request
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %r12d
	movl	4(%rdi), %edi
	sarl	$2, %r12d
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_start_sync_sw
	movb	$1, %r13b
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	(%r15), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_4
## %bb.2:
	addl	$-128, %eax
	cmpl	$1, %eax
	ja	LBB0_9
## %bb.3:
	movl	4(%rbx), %edi
	movl	16(%r15), %ecx
	movl	8(%r15), %r9d
	movl	12(%r15), %r8d
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_i2c_write_sw
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_9
LBB0_4:
	movl	4(%rbx), %edi
	movl	16(%r15), %ecx
	movl	8(%r15), %r9d
	movl	12(%r15), %r8d
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_i2c_read_sw
	testl	%eax, %eax
	je	LBB0_9
LBB0_6:
	movl	(%r15), %eax
	orl	$2, %eax
	cmpl	$131, %eax
	jne	LBB0_7
## %bb.8:
	xorl	%r13d, %r13d
LBB0_9:
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_stop_sync_sw
	movq	_I2C_CHANNEL_OPERATION_FAILED@GOTPCREL(%rip), %rdx
	movq	%rdx, %rcx
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_I2C_CHANNEL_OPERATION_SUCCEEDED@GOTPCREL(%rip), %rcx
LBB0_11:
	testb	%r13b, %r13b
	cmovneq	%rdx, %rcx
LBB0_12:
	movl	(%rcx), %eax
	movl	%eax, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_I2C_CHANNEL_OPERATION_SUCCEEDED@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CHANNEL_OPERATION_SUCCEEDED,4,2 ## @I2C_CHANNEL_OPERATION_SUCCEEDED
	.comm	_I2C_CHANNEL_OPERATION_FAILED,4,2 ## @I2C_CHANNEL_OPERATION_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_i2c_sw_engine_submit_channel_request ; -- Begin function dce_i2c_sw_engine_submit_channel_request
	.p2align	2
_dce_i2c_sw_engine_submit_channel_request: ; @dce_i2c_sw_engine_submit_channel_request
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldp	w8, w0, [x0]
	asr	w22, w8, #2
	mov	x1, x20
	mov	x2, x22
	bl	_start_sync_sw
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_5
; %bb.2:
	sub	w8, w8, #128
	cmp	w8, #1
	b.hi	LBB0_4
; %bb.3:
	ldr	w0, [x21, #4]
	ldp	w4, w3, [x19, #12]
	ldr	w5, [x19, #8]
	mov	x1, x20
	mov	x2, x22
	bl	_i2c_write_sw
	cbnz	w0, LBB0_6
LBB0_4:
	mov	w23, #1
	b	LBB0_8
LBB0_5:
	ldr	w0, [x21, #4]
	ldp	w4, w3, [x19, #12]
	ldr	w5, [x19, #8]
	mov	x1, x20
	mov	x2, x22
	bl	_i2c_read_sw
	cbz	w0, LBB0_4
LBB0_6:
	ldr	w8, [x19]
	orr	w8, w8, #0x2
	cmp	w8, #131
	b.ne	LBB0_10
; %bb.7:
	mov	w23, #0
LBB0_8:
Lloh0:
	adrp	x24, _I2C_CHANNEL_OPERATION_SUCCEEDED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _I2C_CHANNEL_OPERATION_SUCCEEDED@GOTPAGEOFF]
	ldr	w0, [x21, #4]
	mov	x1, x20
	mov	x2, x22
	bl	_stop_sync_sw
	cmp	w0, #0
	cset	w8, eq
	orr	w8, w23, w8
Lloh2:
	adrp	x9, _I2C_CHANNEL_OPERATION_FAILED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2C_CHANNEL_OPERATION_FAILED@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x24, ne
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh4:
	adrp	x8, _I2C_CHANNEL_OPERATION_SUCCEEDED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I2C_CHANNEL_OPERATION_SUCCEEDED@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CHANNEL_OPERATION_SUCCEEDED,4,2 ; @I2C_CHANNEL_OPERATION_SUCCEEDED
	.comm	_I2C_CHANNEL_OPERATION_FAILED,4,2 ; @I2C_CHANNEL_OPERATION_FAILED
.subsections_via_symbols
