	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axxia_i2c_xfer_msg
_axxia_i2c_xfer_msg:                    ## @axxia_i2c_xfer_msg
	.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	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_MST_STATUS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rsi, 56(%rdi)
	movq	%rsi, 48(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rdi)
	movl	%edx, (%rdi)
	addq	$24, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_reinit_completion
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_axxia_i2c_set_addr
	movq	%rbx, %rdi
	callq	_i2c_m_rd
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_i2c_m_recv_len
	movq	%rbx, %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edi
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %r15d
	xorl	%edi, %edi
LBB0_5:
	movq	_MST_RX_XFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	_MST_TX_XFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_i2c_m_rd
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_MST_STATUS_RFL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	%r13, %rdi
	callq	_axxia_i2c_fill_tx_fifo
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_MST_STATUS_TFL@GOTPCREL(%rip), %rax
LBB0_9:
	orl	(%rax), %r14d
LBB0_10:
	movq	_WAIT_TIMER_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	movl	%eax, %edi
	callq	_WT_VALUE
	movl	%eax, %ebx
	movq	(%r15), %rsi
	addq	16(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	cmpl	$0, 4(%r13)
	jne	LBB0_15
## %bb.11:
	movq	_MST_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	testl	%r12d, %r12d
	movq	_CMD_AUTO@GOTPCREL(%rip), %rax
	cmoveq	_CMD_MANUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MST_STATUS_SS@GOTPCREL(%rip), %r12
	cmoveq	_MST_STATUS_SNS@GOTPCREL(%rip), %r12
	callq	_writel
	orl	(%r12), %r14d
	movq	_WT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r15), %rsi
	addq	16(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_i2c_int_enable
	movq	_I2C_XFER_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wait_for_completion_timeout
	movq	%rax, %rbx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_i2c_int_disable
	movq	_MST_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	movq	_CMD_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movl	12(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_13:
	testq	%rbx, %rbx
	jne	LBB0_15
## %bb.14:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 4(%r13)
	leaq	8(%r13), %rdi
	callq	_i2c_recover_bus
	movq	%r13, %rdi
	callq	_axxia_i2c_init
LBB0_15:
	movl	4(%r13), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movl	4(%r13), %eax
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_19
## %bb.17:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	callq	_axxia_i2c_init
LBB0_19:
	movl	4(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MST_STATUS_ERR,4,2             ## @MST_STATUS_ERR
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_MST_RX_XFER,8,3                ## @MST_RX_XFER
	.comm	_MST_TX_XFER,8,3                ## @MST_TX_XFER
	.comm	_MST_STATUS_RFL,4,2             ## @MST_STATUS_RFL
	.comm	_MST_STATUS_TFL,4,2             ## @MST_STATUS_TFL
	.comm	_WAIT_TIMER_CONTROL,8,3         ## @WAIT_TIMER_CONTROL
	.comm	_CMD_MANUAL,4,2                 ## @CMD_MANUAL
	.comm	_MST_COMMAND,8,3                ## @MST_COMMAND
	.comm	_MST_STATUS_SNS,4,2             ## @MST_STATUS_SNS
	.comm	_CMD_AUTO,4,2                   ## @CMD_AUTO
	.comm	_MST_STATUS_SS,4,2              ## @MST_STATUS_SS
	.comm	_WT_EN,4,2                      ## @WT_EN
	.comm	_I2C_XFER_TIMEOUT,4,2           ## @I2C_XFER_TIMEOUT
	.comm	_CMD_BUSY,4,2                   ## @CMD_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"busy after xfer\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_axxia_i2c_xfer_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axxia_i2c_xfer_msg
_axxia_i2c_xfer_msg:                    ; @axxia_i2c_xfer_msg
	.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, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MST_STATUS_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MST_STATUS_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	stp	x1, x1, [x0, #48]
	stp	xzr, xzr, [x0, #32]
	str	w2, [x0]
	add	x20, x0, #24
	mov	x0, x20
	bl	_reinit_completion
	mov	x0, x19
	mov	x1, x22
	bl	_axxia_i2c_set_addr
	mov	x0, x22
	bl	_i2c_m_rd
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_i2c_m_recv_len
	mov	w23, #0
Lloh3:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x22, x8, eq
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w23, [x22]
LBB0_3:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _MST_RX_XFER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MST_RX_XFER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _MST_TX_XFER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MST_TX_XFER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x23
	bl	_writel
	mov	x0, x22
	bl	_i2c_m_rd
	cbz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _MST_STATUS_RFL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MST_STATUS_RFL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_axxia_i2c_fill_tx_fifo
	cbz	x0, LBB0_8
; %bb.6:
Lloh13:
	adrp	x8, _MST_STATUS_TFL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MST_STATUS_TFL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	orr	w24, w8, w24
LBB0_8:
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x23, _WAIT_TIMER_CONTROL@GOTPAGE
Lloh16:
	ldr	x23, [x23, _WAIT_TIMER_CONTROL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	bl	_WT_VALUE
	mov	x22, x0
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_13
; %bb.9:
Lloh17:
	adrp	x8, _CMD_MANUAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CMD_MANUAL@GOTPAGEOFF]
Lloh19:
	adrp	x9, _CMD_AUTO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CMD_AUTO@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
Lloh21:
	adrp	x25, _MST_COMMAND@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MST_COMMAND@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x1, x9, x8
Lloh23:
	adrp	x8, _MST_STATUS_SNS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MST_STATUS_SNS@GOTPAGEOFF]
Lloh25:
	adrp	x9, _MST_STATUS_SS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MST_STATUS_SS@GOTPAGEOFF]
	csel	x21, x8, x9, eq
	bl	_writel
	ldr	w8, [x21]
Lloh27:
	adrp	x9, _WT_EN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _WT_EN@GOTPAGEOFF]
	orr	w21, w8, w24
Lloh29:
	ldr	w8, [x9]
	orr	w0, w8, w22
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_int_enable
Lloh30:
	adrp	x8, _I2C_XFER_TIMEOUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I2C_XFER_TIMEOUT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wait_for_completion_timeout
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_int_disable
	ldr	x8, [x19, #16]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
Lloh33:
	adrp	x8, _CMD_BUSY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CMD_BUSY@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x19, #12]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_11:
	cbnz	x20, LBB0_13
; %bb.12:
Lloh38:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #4]
	add	x0, x19, #8
	bl	_i2c_recover_bus
	mov	x0, x19
	bl	_axxia_i2c_init
LBB0_13:
	ldr	w0, [x19, #4]
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.14:
	ldr	w8, [x19, #4]
Lloh41:
	adrp	x9, _ENXIO@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ENXIO@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_17
; %bb.15:
Lloh44:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_axxia_i2c_init
LBB0_17:
	ldr	w0, [x19, #4]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MST_STATUS_ERR,4,2             ; @MST_STATUS_ERR
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_MST_RX_XFER,8,3                ; @MST_RX_XFER
	.comm	_MST_TX_XFER,8,3                ; @MST_TX_XFER
	.comm	_MST_STATUS_RFL,4,2             ; @MST_STATUS_RFL
	.comm	_MST_STATUS_TFL,4,2             ; @MST_STATUS_TFL
	.comm	_WAIT_TIMER_CONTROL,8,3         ; @WAIT_TIMER_CONTROL
	.comm	_CMD_MANUAL,4,2                 ; @CMD_MANUAL
	.comm	_MST_COMMAND,8,3                ; @MST_COMMAND
	.comm	_MST_STATUS_SNS,4,2             ; @MST_STATUS_SNS
	.comm	_CMD_AUTO,4,2                   ; @CMD_AUTO
	.comm	_MST_STATUS_SS,4,2              ; @MST_STATUS_SS
	.comm	_WT_EN,4,2                      ; @WT_EN
	.comm	_I2C_XFER_TIMEOUT,4,2           ; @I2C_XFER_TIMEOUT
	.comm	_CMD_BUSY,4,2                   ; @CMD_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"busy after xfer\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_axxia_i2c_xfer_msg
.subsections_via_symbols
