	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl111sf_i2c_xfer              ## -- Begin function mxl111sf_i2c_xfer
	.p2align	4, 0x90
_mxl111sf_i2c_xfer:                     ## @mxl111sf_i2c_xfer
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_i2c_get_adapdata
	movq	%rax, %r15
	movq	8(%rax), %r13
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_MXL111SF_V6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_13
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$0, %r15d
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mxl111sf_i2c_hw_xfer_msg
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mxl111sf_i2c_sw_xfer_msg
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	addq	$12, %rbx
	cmpq	%r15, %r12
	jne	LBB0_3
## %bb.9:
	movl	%r12d, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_13:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_7:
	leal	1(%r15), %edx
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	movl	4(%rbx), %eax
	movl	8(%rbx), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_mxl_debug_adv
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	cmpl	%r14d, %r15d
	cmovel	%r14d, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MXL111SF_V6,8,3                ## @MXL111SF_V6
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed with error %d on i2c transaction %d of %d, %sing %d bytes to/from 0x%02x"

	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
L_.str.1:                               ## @.str.1
	.asciz	"read"

L_.str.2:                               ## @.str.2
	.asciz	"writ"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl111sf_i2c_xfer              ; -- Begin function mxl111sf_i2c_xfer
	.p2align	2
_mxl111sf_i2c_xfer:                     ; @mxl111sf_i2c_xfer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	x25, [x22]
Lloh0:
	adrp	x8, _MXL111SF_V6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MXL111SF_V6@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_9
; %bb.1:
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x24, #0
	mov	w27, w19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	cmp	x25, x26
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_mxl111sf_i2c_hw_xfer_msg
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_mxl111sf_i2c_sw_xfer_msg
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	add	x21, x21, #12
	cmp	x27, x24
	b.ne	LBB0_3
; %bb.8:
	mov	x24, x27
	b	LBB0_12
LBB0_9:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_10:
	mov	w24, #0
	b	LBB0_12
LBB0_11:
	add	w2, w24, #1
Lloh6:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh10:
	adrp	x10, l_.str.2@PAGE
Lloh11:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh12:
	ldr	w8, [x8]
	ldp	w11, w6, [x21]
	tst	w8, w11
	csel	x4, x10, x9, eq
	ldr	w5, [x21, #8]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x3, x19
	bl	_mxl_debug_adv
LBB0_12:
	mov	x0, x20
	bl	_mutex_unlock
Lloh15:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w24, w19
	csneg	w0, w19, w8, eq
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MXL111SF_V6,8,3                ; @MXL111SF_V6
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed with error %d on i2c transaction %d of %d, %sing %d bytes to/from 0x%02x"

	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
l_.str.1:                               ; @.str.1
	.asciz	"read"

l_.str.2:                               ; @.str.2
	.asciz	"writ"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
.subsections_via_symbols
