	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axxia_i2c_xfer_seq
_axxia_i2c_xfer_seq:                    ## @axxia_i2c_xfer_seq
	.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	_MST_STATUS_ERR@GOTPCREL(%rip), %rax
	movq	_MST_STATUS_SS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_MST_STATUS_RFL@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	leaq	4(%rsi), %r12
	movq	%r12, %rdi
	callq	_i2c_m_recv_len
	movq	%r12, %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rcx
LBB0_2:
	movl	(%rcx), %r13d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_axxia_i2c_set_addr
	movl	(%r15), %edi
	movq	_MST_TX_XFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	_MST_RX_XFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	%r13d, %edi
	callq	_writel
	movq	%r15, 56(%rbx)
	movq	%r12, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_axxia_i2c_fill_tx_fifo
	movq	_CMD_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MST_COMMAND@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_reinit_completion
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_i2c_int_enable
	movq	_I2C_XFER_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wait_for_completion_timeout
	movq	%rax, %r14
	movl	4(%rbx), %eax
	movq	_ENXIO@GOTPCREL(%rip), %r15
	addl	(%r15), %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_axxia_i2c_handle_seq_nak
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_axxia_i2c_init
	jmp	LBB0_7
LBB0_5:
	movq	(%r12), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_CMD_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_7:
	testq	%r14, %r14
	jne	LBB0_9
## %bb.8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	leaq	8(%rbx), %rdi
	callq	_i2c_recover_bus
	movq	%rbx, %rdi
	callq	_axxia_i2c_init
LBB0_9:
	movl	4(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	4(%rbx), %eax
	addl	(%r15), %eax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_axxia_i2c_init
LBB0_12:
	movl	4(%rbx), %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	_MST_STATUS_SS,4,2              ## @MST_STATUS_SS
	.comm	_MST_STATUS_RFL,4,2             ## @MST_STATUS_RFL
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_MST_TX_XFER,8,3                ## @MST_TX_XFER
	.comm	_MST_RX_XFER,8,3                ## @MST_RX_XFER
	.comm	_CMD_SEQUENCE,4,2               ## @CMD_SEQUENCE
	.comm	_MST_COMMAND,8,3                ## @MST_COMMAND
	.comm	_I2C_XFER_TIMEOUT,4,2           ## @I2C_XFER_TIMEOUT
	.comm	_ENXIO,4,2                      ## @ENXIO
	.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
	.no_dead_strip	_axxia_i2c_xfer_seq
.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_seq
_axxia_i2c_xfer_seq:                    ; @axxia_i2c_xfer_seq
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MST_STATUS_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MST_STATUS_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MST_STATUS_SS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MST_STATUS_SS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MST_STATUS_RFL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MST_STATUS_RFL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w20, w8, w9
	add	x22, x1, #4
	mov	x0, x22
	bl	_i2c_m_recv_len
Lloh9:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x22, x8, eq
	ldr	w23, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_axxia_i2c_set_addr
	ldr	w0, [x21]
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _MST_TX_XFER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MST_TX_XFER@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
Lloh14:
	adrp	x9, _MST_RX_XFER@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MST_RX_XFER@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x23
	bl	_writel
	stp	x22, x21, [x19, #48]
	stp	xzr, xzr, [x19, #32]
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_axxia_i2c_fill_tx_fifo
Lloh17:
	adrp	x8, _CMD_SEQUENCE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CMD_SEQUENCE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
Lloh20:
	adrp	x22, _MST_COMMAND@GOTPAGE
Lloh21:
	ldr	x22, [x22, _MST_COMMAND@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	add	x21, x19, #24
	mov	x0, x21
	bl	_reinit_completion
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_int_enable
Lloh22:
	adrp	x8, _I2C_XFER_TIMEOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _I2C_XFER_TIMEOUT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wait_for_completion_timeout
	mov	x20, x0
	ldr	w8, [x19, #4]
Lloh25:
	adrp	x21, _ENXIO@GOTPAGE
Lloh26:
	ldr	x21, [x21, _ENXIO@GOTPAGEOFF]
	ldr	w9, [x21]
	cmn	w8, w9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_axxia_i2c_handle_seq_nak
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_axxia_i2c_init
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh27:
	adrp	x8, _CMD_BUSY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CMD_BUSY@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19, #12]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_5:
	cbnz	x20, LBB0_7
; %bb.6:
Lloh32:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh34:
	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_7:
	ldr	w0, [x19, #4]
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x19, #4]
	ldr	w9, [x21]
	cmn	w8, w9
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_axxia_i2c_init
LBB0_10:
	ldr	w0, [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
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MST_STATUS_ERR,4,2             ; @MST_STATUS_ERR
	.comm	_MST_STATUS_SS,4,2              ; @MST_STATUS_SS
	.comm	_MST_STATUS_RFL,4,2             ; @MST_STATUS_RFL
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_MST_TX_XFER,8,3                ; @MST_TX_XFER
	.comm	_MST_RX_XFER,8,3                ; @MST_RX_XFER
	.comm	_CMD_SEQUENCE,4,2               ; @CMD_SEQUENCE
	.comm	_MST_COMMAND,8,3                ; @MST_COMMAND
	.comm	_I2C_XFER_TIMEOUT,4,2           ; @I2C_XFER_TIMEOUT
	.comm	_ENXIO,4,2                      ; @ENXIO
	.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
	.no_dead_strip	_axxia_i2c_xfer_seq
.subsections_via_symbols
