	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl111sf_i2c_sw_xfer_msg
_mxl111sf_i2c_sw_xfer_msg:              ## @mxl111sf_i2c_sw_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
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_mxl_i2c
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_mxl111sf_i2c_start
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_mxl_fail
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_17
## %bb.2:
	movl	4(%r15), %eax
	leal	(%rax,%rax), %esi
	incl	%esi
	movq	%r14, %rdi
	callq	_mxl111sf_i2c_bitbang_sendbyte
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_16
## %bb.3:
	cmpl	$0, 8(%r15)
	jle	LBB0_9
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cltq
	addq	$4, %r13
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	callq	_mxl111sf_i2c_bitbang_recvbyte
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	8(%r15), %rax
	movq	%rax, %rcx
	decq	%rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_mxl111sf_i2c_ack
	movl	8(%r15), %eax
	jmp	LBB0_8
LBB0_10:
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:
	movl	4(%r15), %eax
	addl	%eax, %eax
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_mxl111sf_i2c_bitbang_sendbyte
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	je	LBB0_12
LBB0_16:
	movq	%r14, %rdi
	callq	_mxl111sf_i2c_stop
LBB0_17:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_mxl111sf_i2c_nack
	movq	%r14, %rdi
	callq	_mxl111sf_i2c_stop
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_mxl_fail
	jmp	LBB0_17
LBB0_12:
	cmpl	$0, 8(%r15)
	jle	LBB0_16
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_mxl111sf_i2c_bitbang_sendbyte
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"()"

	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_mxl111sf_i2c_sw_xfer_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxl111sf_i2c_sw_xfer_msg
_mxl111sf_i2c_sw_xfer_msg:              ; @mxl111sf_i2c_sw_xfer_msg
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_i2c
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w22, w9, w8
	mov	x0, x19
	bl	_mxl111sf_i2c_start
	mov	x21, x0
	bl	_mxl_fail
	cbz	w22, LBB0_9
; %bb.1:
	cbnz	x0, LBB0_12
; %bb.2:
	ldr	w8, [x20, #4]
	mov	w1, #1
	bfi	w1, w8, #1, #31
	mov	x0, x19
	bl	_mxl111sf_i2c_bitbang_sendbyte
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_11
; %bb.3:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	add	x22, x22, #4
	cmp	x23, w8, sxtw
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x1, x8, x22
	mov	x0, x19
	bl	_mxl111sf_i2c_bitbang_recvbyte
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x20, #8]
	sub	x9, x8, #1
	cmp	x23, x9
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_mxl111sf_i2c_ack
	ldr	w8, [x20, #8]
	b	LBB0_5
LBB0_9:
	cbnz	x0, LBB0_12
; %bb.10:
	ldr	w8, [x20, #4]
	ubfiz	w1, w8, #1, #7
	mov	x0, x19
	bl	_mxl111sf_i2c_bitbang_sendbyte
	mov	x21, x0
	bl	_mxl_fail
	cbz	x0, LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_mxl111sf_i2c_stop
LBB0_12:
	mov	x0, x21
	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
LBB0_13:
	mov	x0, x19
	bl	_mxl111sf_i2c_nack
	mov	x0, x19
	bl	_mxl111sf_i2c_stop
	mov	x21, x0
	bl	_mxl_fail
	b	LBB0_12
LBB0_14:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.15:
	mov	x22, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_mxl111sf_i2c_bitbang_sendbyte
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20, #8]
	cmp	x22, x8
	b.lt	LBB0_16
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"()"

	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_mxl111sf_i2c_sw_xfer_msg
.subsections_via_symbols
