	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_transaction
_process_transaction:                   ## @process_transaction
	.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, %rbx
	movq	%rdi, %r12
	movq	16(%rsi), %r15
	movq	24(%rsi), %r14
	callq	_is_hw_busy
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_I2C_CHANNEL_OPERATION_ENGINE_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_2:
	movl	(%r12), %eax
	cmpl	$3, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:
	movq	_DC_I2C_TRANSACTION3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DC_I2C_STOP_ON_NACK0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DC_I2C_START0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DC_I2C_RW0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_DCE_I2C_TRANSACTION_ACTION_I2C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r11d, %r11d
	andl	(%rbx), %eax
	setne	%r11b
	movq	_DC_I2C_COUNT0@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_DC_I2C_STOP0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	subq	$8, %rsp
	movl	$1, %r13d
	movl	$1, %edx
	movl	$1, %r8d
	pushq	$1
	pushq	%rax
	pushq	%r14
	pushq	%r10
	pushq	%r11
	callq	_REG_UPDATE_5
	addq	$48, %rsp
	jmp	LBB0_12
LBB0_4:
	movl	(%rbx), %ecx
	movq	_DCE_I2C_TRANSACTION_ACTION_I2C_WRITE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	sete	%bl
	movq	_DCE_I2C_TRANSACTION_ACTION_I2C_READ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%ecx, %esi
	setne	%dl
	orb	%bl, %dl
	movzbl	%dl, %r13d
	cmpl	$2, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$1, %eax
	je	LBB0_9
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	xorl	%eax, %eax
	testl	%ecx, %esi
	setne	%al
	movq	_DC_I2C_TRANSACTION0@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	testl	%ecx, %esi
	setne	%al
	movq	_DC_I2C_TRANSACTION2@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	testl	%ecx, %esi
	setne	%al
	movq	_DC_I2C_TRANSACTION1@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %edi
	movq	_DC_I2C_STOP_ON_NACK0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DC_I2C_START0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DC_I2C_RW0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_DC_I2C_COUNT0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_DC_I2C_STOP0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	subq	$8, %rsp
	movl	$1, %edx
	movl	$1, %r8d
	pushq	%r13
	pushq	%rbx
	pushq	%r14
	pushq	%r10
	pushq	%rax
	callq	_REG_UPDATE_5
	addq	$48, %rsp
LBB0_11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	cmpl	$0, (%r12)
	movq	_DC_I2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DC_I2C_DATA_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %r9d
	je	LBB0_14
## %bb.13:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	%edi, %r8d
	callq	_REG_SET_2
	movq	%rax, %rbx
	movq	8(%r12), %rax
	incq	%rax
	jmp	LBB0_15
LBB0_14:
	movq	_DC_I2C_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DC_I2C_INDEX_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	%edi, %r8d
	pushq	$1
	pushq	%rbx
	pushq	$0
	pushq	%rax
	callq	_REG_SET_4
	addq	$32, %rsp
	movq	%rax, %rbx
	movl	$1, %eax
LBB0_15:
	movq	%rax, 8(%r12)
	movq	_DCE_I2C_TRANSACTION_ACTION_I2C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	jne	LBB0_20
## %bb.16:
	testq	%r14, %r14
	je	LBB0_20
## %bb.17:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	_DC_I2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DC_I2C_INDEX_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15,%r13,4), %r9d
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	%edi, %r8d
	callq	_REG_SET_2
	incq	8(%r12)
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_18
## %bb.19:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_20:
	incl	(%r12)
	movl	4(%r12), %eax
	addl	%r14d, %eax
	incl	%eax
	movl	%eax, 4(%r12)
LBB0_21:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CHANNEL_OPERATION_ENGINE_BUSY,4,2 ## @I2C_CHANNEL_OPERATION_ENGINE_BUSY
	.comm	_DCE_I2C_TRANSACTION_ACTION_I2C_WRITE,4,2 ## @DCE_I2C_TRANSACTION_ACTION_I2C_WRITE
	.comm	_DCE_I2C_TRANSACTION_ACTION_I2C_READ,4,2 ## @DCE_I2C_TRANSACTION_ACTION_I2C_READ
	.comm	_DC_I2C_TRANSACTION0,4,2        ## @DC_I2C_TRANSACTION0
	.comm	_DC_I2C_STOP_ON_NACK0,4,2       ## @DC_I2C_STOP_ON_NACK0
	.comm	_DC_I2C_START0,4,2              ## @DC_I2C_START0
	.comm	_DC_I2C_RW0,4,2                 ## @DC_I2C_RW0
	.comm	_DC_I2C_COUNT0,4,2              ## @DC_I2C_COUNT0
	.comm	_DC_I2C_STOP0,4,2               ## @DC_I2C_STOP0
	.comm	_DC_I2C_TRANSACTION1,4,2        ## @DC_I2C_TRANSACTION1
	.comm	_DC_I2C_TRANSACTION2,4,2        ## @DC_I2C_TRANSACTION2
	.comm	_DC_I2C_TRANSACTION3,4,2        ## @DC_I2C_TRANSACTION3
	.comm	_DC_I2C_DATA,4,2                ## @DC_I2C_DATA
	.comm	_DC_I2C_DATA_RW,4,2             ## @DC_I2C_DATA_RW
	.comm	_DC_I2C_INDEX,4,2               ## @DC_I2C_INDEX
	.comm	_DC_I2C_INDEX_WRITE,4,2         ## @DC_I2C_INDEX_WRITE
	.no_dead_strip	_process_transaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_transaction
_process_transaction:                   ; @process_transaction
	.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	x21, x1
	mov	x19, x0
	ldp	x24, x23, [x1, #16]
	bl	_is_hw_busy
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x8, _I2C_CHANNEL_OPERATION_ENGINE_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_CHANNEL_OPERATION_ENGINE_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	b	LBB0_20
LBB0_2:
	ldr	w8, [x19]
Lloh3:
	adrp	x25, _DCE_I2C_TRANSACTION_ACTION_I2C_READ@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DCE_I2C_TRANSACTION_ACTION_I2C_READ@GOTPAGEOFF]
	cmp	w8, #3
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _DC_I2C_TRANSACTION3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DC_I2C_TRANSACTION3@GOTPAGEOFF]
Lloh7:
	adrp	x9, _DC_I2C_STOP_ON_NACK0@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DC_I2C_STOP_ON_NACK0@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	ldr	w1, [x9]
Lloh11:
	adrp	x8, _DC_I2C_START0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DC_I2C_START0@GOTPAGEOFF]
Lloh13:
	adrp	x9, _DC_I2C_RW0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DC_I2C_RW0@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	ldr	w5, [x9]
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	cset	w6, ne
Lloh17:
	adrp	x8, _DC_I2C_COUNT0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DC_I2C_COUNT0@GOTPAGEOFF]
Lloh19:
	ldr	w7, [x8]
Lloh20:
	adrp	x8, _DC_I2C_STOP0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DC_I2C_STOP0@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	mov	w20, #1
	b	LBB0_11
LBB0_4:
	ldr	w9, [x21]
Lloh23:
	adrp	x10, _DCE_I2C_TRANSACTION_ACTION_I2C_WRITE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _DCE_I2C_TRANSACTION_ACTION_I2C_WRITE@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	w9, w10
	cset	w10, eq
	ldr	w11, [x25]
	ands	w9, w11, w9
	cset	w11, ne
	orr	w20, w10, w11
	cmp	w8, #2
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #1
	b.eq	LBB0_9
; %bb.6:
	cbnz	w8, LBB0_12
; %bb.7:
	cmp	w9, #0
	cset	w6, ne
Lloh26:
	adrp	x8, _DC_I2C_TRANSACTION0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DC_I2C_TRANSACTION0@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	cmp	w9, #0
	cset	w6, ne
Lloh28:
	adrp	x8, _DC_I2C_TRANSACTION2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DC_I2C_TRANSACTION2@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	cmp	w9, #0
	cset	w6, ne
Lloh30:
	adrp	x8, _DC_I2C_TRANSACTION1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DC_I2C_TRANSACTION1@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _DC_I2C_STOP_ON_NACK0@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DC_I2C_STOP_ON_NACK0@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _DC_I2C_START0@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DC_I2C_START0@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
Lloh38:
	adrp	x8, _DC_I2C_RW0@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DC_I2C_RW0@GOTPAGEOFF]
Lloh40:
	ldr	w5, [x8]
Lloh41:
	adrp	x8, _DC_I2C_COUNT0@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DC_I2C_COUNT0@GOTPAGEOFF]
Lloh43:
	ldr	w7, [x8]
Lloh44:
	adrp	x8, _DC_I2C_STOP0@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DC_I2C_STOP0@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
LBB0_11:
	stp	w8, w20, [sp, #8]
	str	x23, [sp]
	mov	w2, #1
	mov	w4, #1
	bl	_REG_UPDATE_5
LBB0_12:
Lloh47:
	adrp	x26, _DC_I2C_DATA@GOTPAGE
Lloh48:
	ldr	x26, [x26, _DC_I2C_DATA@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	w0, [x26]
Lloh49:
	adrp	x9, _DC_I2C_DATA_RW@GOTPAGE
Lloh50:
	ldr	x9, [x9, _DC_I2C_DATA_RW@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x9]
	ldr	w5, [x21, #4]
	cbz	w8, LBB0_14
; %bb.13:
	mov	x1, #0
	mov	w3, #0
	mov	x4, x0
	bl	_REG_SET_2
	mov	x22, x0
	ldr	x8, [x19, #8]
	add	x27, x8, #1
	b	LBB0_15
LBB0_14:
Lloh52:
	adrp	x8, _DC_I2C_INDEX@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DC_I2C_INDEX@GOTPAGEOFF]
Lloh54:
	ldr	w6, [x8]
Lloh55:
	adrp	x8, _DC_I2C_INDEX_WRITE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _DC_I2C_INDEX_WRITE@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	mov	w27, #1
	stp	w8, w27, [sp]
	mov	w1, #0
	mov	w3, #0
	mov	x4, x0
	mov	w7, #0
	bl	_REG_SET_4
	mov	x22, x0
LBB0_15:
	str	x27, [x19, #8]
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.16:
	cbz	x23, LBB0_19
; %bb.17:
Lloh58:
	adrp	x21, _DC_I2C_INDEX_WRITE@GOTPAGE
Lloh59:
	ldr	x21, [x21, _DC_I2C_INDEX_WRITE@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	w2, [x21]
	ldr	w5, [x24], #4
	mov	x1, x22
	mov	w3, #0
	mov	x4, x0
	bl	_REG_SET_2
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	subs	x23, x23, #1
	b.ne	LBB0_18
LBB0_19:
	ldp	w8, w9, [x19]
	add	w8, w8, #1
	add	w9, w23, w9
	add	w9, w9, #1
	stp	w8, w9, [x19]
LBB0_20:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CHANNEL_OPERATION_ENGINE_BUSY,4,2 ; @I2C_CHANNEL_OPERATION_ENGINE_BUSY
	.comm	_DCE_I2C_TRANSACTION_ACTION_I2C_WRITE,4,2 ; @DCE_I2C_TRANSACTION_ACTION_I2C_WRITE
	.comm	_DCE_I2C_TRANSACTION_ACTION_I2C_READ,4,2 ; @DCE_I2C_TRANSACTION_ACTION_I2C_READ
	.comm	_DC_I2C_TRANSACTION0,4,2        ; @DC_I2C_TRANSACTION0
	.comm	_DC_I2C_STOP_ON_NACK0,4,2       ; @DC_I2C_STOP_ON_NACK0
	.comm	_DC_I2C_START0,4,2              ; @DC_I2C_START0
	.comm	_DC_I2C_RW0,4,2                 ; @DC_I2C_RW0
	.comm	_DC_I2C_COUNT0,4,2              ; @DC_I2C_COUNT0
	.comm	_DC_I2C_STOP0,4,2               ; @DC_I2C_STOP0
	.comm	_DC_I2C_TRANSACTION1,4,2        ; @DC_I2C_TRANSACTION1
	.comm	_DC_I2C_TRANSACTION2,4,2        ; @DC_I2C_TRANSACTION2
	.comm	_DC_I2C_TRANSACTION3,4,2        ; @DC_I2C_TRANSACTION3
	.comm	_DC_I2C_DATA,4,2                ; @DC_I2C_DATA
	.comm	_DC_I2C_DATA_RW,4,2             ; @DC_I2C_DATA_RW
	.comm	_DC_I2C_INDEX,4,2               ; @DC_I2C_INDEX
	.comm	_DC_I2C_INDEX_WRITE,4,2         ; @DC_I2C_INDEX_WRITE
	.no_dead_strip	_process_transaction
.subsections_via_symbols
