	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl111sf_i2c_bitbang_sendbyte
_mxl111sf_i2c_bitbang_sendbyte:         ## @mxl111sf_i2c_bitbang_sendbyte
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_mxl_i2c
	movq	_SW_I2C_BUSY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_mxl111sf_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	je	LBB0_1
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	_SW_I2C_ADDR@GOTPCREL(%rip), %r13
	movq	_SW_I2C_EN@GOTPCREL(%rip), %rdi
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %eax
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movsbl	%al, %edx
	sarl	$7, %edx
	movq	_SW_SDA_OUT@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %esi
	orl	(%rdi), %edx
	orl	$16, %edx
	movq	%rdi, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_mxl111sf_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edx
	orl	-44(%rbp), %edx
	movl	(%r13), %esi
	movq	_SW_SCL_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$16, %edx
	movq	%r15, %rdi
	callq	_mxl111sf_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r12
	movl	(%r13), %esi
	movq	%r15, %rdi
	movq	%r14, %r15
	movl	(%r14), %edx
	orl	-44(%rbp), %edx
	orl	$16, %edx
	callq	_mxl111sf_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	cmpl	$8, %ecx
	movq	%r15, %rdi
	movq	%r12, %r13
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_3
## %bb.6:
	testb	$1, %r12b
	movq	_SW_I2C_BUSY_ADDR@GOTPCREL(%rip), %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_8
## %bb.7:
	movl	(%r13), %esi
	movl	(%rdi), %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
	movq	%r15, %rdi
	testq	%rax, %rax
	jne	LBB0_13
LBB0_8:
	movl	(%rdi), %edx
	movq	_SW_SCL_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r13), %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_13
## %bb.9:
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_mxl111sf_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movl	(%r13), %esi
	movl	(%r15), %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
	jne	LBB0_13
## %bb.11:
	movq	_SW_SDA_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_13
## %bb.12:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(0x%02x)"

	.comm	_SW_I2C_BUSY_ADDR,4,2           ## @SW_I2C_BUSY_ADDR
	.comm	_SW_SDA_OUT,4,2                 ## @SW_SDA_OUT
	.comm	_SW_I2C_ADDR,4,2                ## @SW_I2C_ADDR
	.comm	_SW_I2C_EN,4,2                  ## @SW_I2C_EN
	.comm	_SW_SCL_OUT,4,2                 ## @SW_SCL_OUT
	.comm	_SW_SDA_IN,4,2                  ## @SW_SDA_IN
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mxl111sf_i2c_bitbang_sendbyte
.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_sendbyte
_mxl111sf_i2c_bitbang_sendbyte:         ; @mxl111sf_i2c_bitbang_sendbyte
	.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	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_i2c
Lloh2:
	adrp	x22, _SW_I2C_BUSY_ADDR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SW_I2C_BUSY_ADDR@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mxl111sf_read_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:
	mov	w27, #0
Lloh4:
	adrp	x23, _SW_SDA_OUT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SW_SDA_OUT@GOTPAGEOFF]
Lloh6:
	adrp	x24, _SW_I2C_ADDR@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SW_I2C_ADDR@GOTPAGEOFF]
Lloh8:
	adrp	x25, _SW_I2C_EN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SW_I2C_EN@GOTPAGEOFF]
Lloh10:
	adrp	x26, _SW_SCL_OUT@GOTPAGE
Lloh11:
	ldr	x26, [x26, _SW_SCL_OUT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	lsl	w9, w20, w27
	lsl	w9, w9, #24
	and	w8, w8, w9, asr #31
	str	w8, [sp, #12]
	ldr	w1, [x24]
	ldr	w9, [x25]
	orr	w8, w8, w9
	orr	w2, w8, #0x10
	mov	x0, x19
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	ldr	w8, [x25]
	ldr	w9, [sp, #12]
	ldr	w10, [x26]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w2, w8, #0x10
	mov	x0, x19
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	ldr	w8, [x25]
	ldr	w9, [sp, #12]
	orr	w8, w8, w9
	orr	w2, w8, #0x10
	mov	x0, x19
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w27, w27, #1
	cmp	w27, #8
	b.ne	LBB0_3
; %bb.7:
	tbnz	w20, #0, LBB0_9
; %bb.8:
	ldr	w1, [x24]
	ldr	w8, [x25]
	ldr	w9, [x23]
	orr	w8, w8, w9
	orr	w2, w8, #0x10
	mov	x0, x19
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
LBB0_9:
	ldr	w1, [x24]
	ldr	w8, [x25]
	ldr	w9, [x26]
	ldr	w10, [x23]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w2, w8, #0x10
	mov	x0, x19
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
; %bb.10:
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mxl111sf_read_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
; %bb.11:
	ldr	w1, [x24]
	ldr	w8, [x25]
	ldr	w9, [x23]
	orr	w8, w8, w9
	orr	w2, w8, #0x10
	mov	x0, x19
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_1
; %bb.12:
	ldr	w8, [sp, #12]
Lloh12:
	adrp	x9, _SW_SDA_IN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SW_SDA_IN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.13:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(0x%02x)"

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