	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl111sf_i2c_bitbang_recvbyte
_mxl111sf_i2c_bitbang_recvbyte:         ## @mxl111sf_i2c_bitbang_recvbyte
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_mxl_i2c
	movl	$0, (%r14)
	movq	_SW_I2C_ADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SW_I2C_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SW_SDA_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$16, %edx
	movq	%r12, %rdi
	callq	_mxl111sf_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SW_I2C_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SW_SCL_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r15), %esi
	movq	_SW_SDA_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$16, %edx
	movq	%r12, %rdi
	callq	_mxl111sf_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SW_I2C_BUSY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	leaq	-44(%rbp), %rdx
	callq	_mxl111sf_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	-44(%rbp), %r12d
	movq	_SW_SDA_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r15), %esi
	movq	_SW_I2C_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SW_SDA_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$16, %edx
	movq	%rdi, %r15
	callq	_mxl111sf_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$128, %eax
	movl	%r13d, %ecx
	shrl	%cl, %eax
	andl	%r12d, %r14d
	testl	%r14d, %r14d
	cmovel	%r14d, %eax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	orl	%eax, %r14d
	incl	%r13d
	cmpl	$8, %r13d
	movq	%r15, %r12
	movq	_SW_I2C_ADDR@GOTPCREL(%rip), %r15
	jne	LBB0_2
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"()"

	.comm	_SW_I2C_ADDR,4,2                ## @SW_I2C_ADDR
	.comm	_SW_I2C_EN,4,2                  ## @SW_I2C_EN
	.comm	_SW_SDA_OUT,4,2                 ## @SW_SDA_OUT
	.comm	_SW_SCL_OUT,4,2                 ## @SW_SCL_OUT
	.comm	_SW_I2C_BUSY_ADDR,4,2           ## @SW_I2C_BUSY_ADDR
	.comm	_SW_SDA_IN,4,2                  ## @SW_SDA_IN
	.no_dead_strip	_mxl111sf_i2c_bitbang_recvbyte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxl111sf_i2c_bitbang_recvbyte
_mxl111sf_i2c_bitbang_recvbyte:         ; @mxl111sf_i2c_bitbang_recvbyte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_i2c
	str	wzr, [x19]
Lloh2:
	adrp	x22, _SW_I2C_ADDR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SW_I2C_ADDR@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x23, _SW_I2C_EN@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SW_I2C_EN@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh6:
	adrp	x24, _SW_SDA_OUT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SW_SDA_OUT@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
	orr	w2, w8, #0x10
	mov	x0, x20
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	w25, #0
	mov	w26, #0
Lloh8:
	adrp	x27, _SW_SCL_OUT@GOTPAGE
Lloh9:
	ldr	x27, [x27, _SW_SCL_OUT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	w8, [x23]
	ldr	w9, [x27]
	ldr	w10, [x24]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w2, w8, #0x10
	mov	x0, x20
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x8, _SW_I2C_BUSY_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SW_I2C_BUSY_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_mxl111sf_read_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w19, [sp, #12]
Lloh13:
	adrp	x8, _SW_SDA_IN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SW_SDA_IN@GOTPAGEOFF]
Lloh15:
	ldr	w28, [x8]
	ldr	w1, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w8, w9
	orr	w2, w8, #0x10
	mov	x0, x20
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #128
	lsr	w8, w8, w26
	tst	w28, w19
	csel	w8, wzr, w8, eq
	orr	w25, w8, w25
	add	w26, w26, #1
	cmp	w26, #8
	b.ne	LBB0_3
; %bb.7:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	w25, [x8]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"()"

	.comm	_SW_I2C_ADDR,4,2                ; @SW_I2C_ADDR
	.comm	_SW_I2C_EN,4,2                  ; @SW_I2C_EN
	.comm	_SW_SDA_OUT,4,2                 ; @SW_SDA_OUT
	.comm	_SW_SCL_OUT,4,2                 ; @SW_SCL_OUT
	.comm	_SW_I2C_BUSY_ADDR,4,2           ; @SW_I2C_BUSY_ADDR
	.comm	_SW_SDA_IN,4,2                  ; @SW_SDA_IN
	.no_dead_strip	_mxl111sf_i2c_bitbang_recvbyte
.subsections_via_symbols
