	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qup_i2c_conf_xfer_v2
_qup_i2c_conf_xfer_v2:                  ## @qup_i2c_conf_xfer_v2
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	48(%rdi), %rbx
	movq	40(%rdi), %r15
	movq	%r15, %rdi
	callq	_qup_i2c_check_msg_len
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpq	$0, 32(%r14)
	je	LBB0_2
## %bb.3:
	incl	(%rbx)
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.5:
	movq	_QUP_I2C_MX_CONFIG_DURING_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movl	%eax, 28(%r14)
	movq	%rbx, %rdi
	callq	_qup_i2c_clear_blk_v2
	movq	%r14, %rdi
	callq	_qup_i2c_conf_count_v2
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.7:
	movq	_QUP_RUN_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qup_i2c_change_state
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:
	movl	24(%r14), %edi
	movq	_QUP_I2C_CLK_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r14), %rsi
	callq	_writel
	movq	_QUP_PAUSE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qup_i2c_change_state
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
LBB0_9:
	leaq	8(%r14), %rdi
	callq	_reinit_completion
	movl	(%r14), %edi
	callq	_enable_irq
	cmpl	$0, 56(%r14)
	jne	LBB0_13
## %bb.10:
	movl	4(%r14), %eax
	movl	%eax, 52(%r14)
	movq	%r14, %rdi
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.11:
	callq	_qup_i2c_write_rx_tags_v2
	jmp	LBB0_13
LBB0_12:
	callq	_qup_i2c_write_tx_fifo_v2
LBB0_13:
	movq	_QUP_RUN_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qup_i2c_change_state
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qup_i2c_wait_for_complete
	movl	%eax, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.15:
	testl	%ebx, %ebx
	jne	LBB0_17
## %bb.16:
	movq	_QUP_PAUSE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qup_i2c_change_state
	movl	%eax, %ebx
LBB0_17:
	movl	(%r14), %edi
	callq	_disable_irq
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUP_I2C_MX_CONFIG_DURING_RUN,4,2 ## @QUP_I2C_MX_CONFIG_DURING_RUN
	.comm	_QUP_RUN_STATE,4,2              ## @QUP_RUN_STATE
	.comm	_QUP_I2C_CLK_CTL,8,3            ## @QUP_I2C_CLK_CTL
	.comm	_QUP_PAUSE_STATE,4,2            ## @QUP_PAUSE_STATE
	.no_dead_strip	_qup_i2c_conf_xfer_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qup_i2c_conf_xfer_v2
_qup_i2c_conf_xfer_v2:                  ; @qup_i2c_conf_xfer_v2
	.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	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	add	x24, x0, #48
	ldr	x21, [x0, #40]
	mov	x0, x21
	bl	_qup_i2c_check_msg_len
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w23, #0
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
Lloh0:
	adrp	x8, _QUP_I2C_MX_CONFIG_DURING_RUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUP_I2C_MX_CONFIG_DURING_RUN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, #0
	csel	w8, w8, wzr, eq
	str	w8, [x19, #28]
	mov	x0, x24
	bl	_qup_i2c_clear_blk_v2
	mov	x0, x19
	bl	_qup_i2c_conf_count_v2
Lloh3:
	adrp	x24, _QUP_RUN_STATE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _QUP_RUN_STATE@GOTPAGEOFF]
	cbz	w23, LBB0_7
; %bb.5:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_qup_i2c_change_state
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.6:
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _QUP_I2C_CLK_CTL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QUP_I2C_CLK_CTL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh8:
	adrp	x8, _QUP_PAUSE_STATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QUP_PAUSE_STATE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qup_i2c_change_state
	mov	x23, x0
	cbnz	w0, LBB0_16
LBB0_7:
	add	x0, x19, #8
	bl	_reinit_completion
	ldr	w0, [x19]
	bl	_enable_irq
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_11
; %bb.8:
	ldr	w8, [x19, #4]
	str	w8, [x19, #52]
	mov	x0, x19
	cbz	w22, LBB0_10
; %bb.9:
	bl	_qup_i2c_write_rx_tags_v2
	b	LBB0_11
LBB0_10:
	bl	_qup_i2c_write_tx_fifo_v2
LBB0_11:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_qup_i2c_change_state
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.12:
	mov	x0, x19
	mov	x1, x21
	bl	_qup_i2c_wait_for_complete
	mov	x23, x0
	cbz	w20, LBB0_15
; %bb.13:
	cbnz	w23, LBB0_15
; %bb.14:
Lloh11:
	adrp	x8, _QUP_PAUSE_STATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QUP_PAUSE_STATE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qup_i2c_change_state
	mov	x23, x0
LBB0_15:
	ldr	w0, [x19]
	bl	_disable_irq
LBB0_16:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QUP_I2C_MX_CONFIG_DURING_RUN,4,2 ; @QUP_I2C_MX_CONFIG_DURING_RUN
	.comm	_QUP_RUN_STATE,4,2              ; @QUP_RUN_STATE
	.comm	_QUP_I2C_CLK_CTL,8,3            ; @QUP_I2C_CLK_CTL
	.comm	_QUP_PAUSE_STATE,4,2            ; @QUP_PAUSE_STATE
	.no_dead_strip	_qup_i2c_conf_xfer_v2
.subsections_via_symbols
