	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_byte_sw
_read_byte_sw:                          ## @read_byte_sw
	.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	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	leal	(%rdx,%rdx), %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$7, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_write_bit_to_ddc
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_wait_for_scl_high_sw
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SDA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_read_bit_from_ddc
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	testq	%rax, %rax
	movl	$0, %eax
	cmovel	%eax, %edx
	orl	%edx, %r15d
	movq	_SCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_bit_to_ddc
	movl	%r13d, %edi
	callq	_udelay
	addl	$-1, %r14d
	jb	LBB0_1
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movl	%r12d, %edi
	callq	_udelay
	movq	_SDA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	sete	%dl
	movq	%rbx, %rdi
	callq	_write_bit_to_ddc
	movl	%r12d, %edi
	callq	_udelay
	movq	_SCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_write_bit_to_ddc
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_wait_for_scl_high_sw
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_SCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_bit_to_ddc
	movl	%r12d, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_write_bit_to_ddc
	movl	%r12d, %edi
	callq	_udelay
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCL,4,2                        ## @SCL
	.comm	_SDA,4,2                        ## @SDA
	.no_dead_strip	_read_byte_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_byte_sw
_read_byte_sw:                          ; @read_byte_sw
	.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
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w27, #0
	lsl	w24, w2, #1
	mov	w28, #7
Lloh0:
	adrp	x26, _SCL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SCL@GOTPAGEOFF]
	mov	w22, #1
Lloh2:
	adrp	x25, _SDA@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SDA@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #1
	bl	_write_bit_to_ddc
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_wait_for_scl_high_sw
	cbz	w0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_read_bit_from_ddc
	lsl	w8, w22, w28
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w27, w8, w27
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #0
	bl	_write_bit_to_ddc
	mov	x0, x24
	bl	_udelay
	sub	w28, w28, #1
	cmn	w28, #1
	b.ne	LBB0_1
; %bb.3:
	str	w27, [x23]
	mov	x0, x19
	bl	_udelay
	ldr	w1, [x25]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w2, eq
	mov	x0, x20
	bl	_write_bit_to_ddc
	mov	x0, x19
	bl	_udelay
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #1
	bl	_write_bit_to_ddc
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_wait_for_scl_high_sw
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #0
	bl	_write_bit_to_ddc
	mov	x0, x19
	bl	_udelay
	ldr	w1, [x25]
	mov	w21, #1
	mov	x0, x20
	mov	w2, #1
	bl	_write_bit_to_ddc
	mov	x0, x19
	bl	_udelay
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCL,4,2                        ; @SCL
	.comm	_SDA,4,2                        ; @SDA
	.no_dead_strip	_read_byte_sw
.subsections_via_symbols
