	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_sync_sw
_start_sync_sw:                         ## @start_sync_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
	pushq	%rax
	.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, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_SCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_write_bit_to_ddc
	movl	%r14d, %edi
	callq	_udelay
	movq	$-1, %rbx
	movq	_SDA@GOTPCREL(%rip), %r13
	movq	_I2C_SW_RETRIES@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_write_bit_to_ddc
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_read_bit_from_ddc
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_1
	jmp	LBB0_6
LBB0_4:
	movl	%r14d, %edi
	callq	_udelay
	movq	_SCL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$1, %r12d
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_write_bit_to_ddc
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_wait_for_scl_high_sw
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_write_bit_to_ddc
	movl	%r14d, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_write_bit_to_ddc
	movl	%r14d, %edi
	callq	_udelay
	jmp	LBB0_7
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %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
	.comm	_I2C_SW_RETRIES,8,3             ## @I2C_SW_RETRIES
	.no_dead_strip	_start_sync_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_sync_sw
_start_sync_sw:                         ; @start_sync_sw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _SCL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SCL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #1
	bl	_write_bit_to_ddc
	mov	x0, x19
	bl	_udelay
	mov	x24, #-1
Lloh2:
	adrp	x23, _SDA@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SDA@GOTPAGEOFF]
Lloh4:
	adrp	x25, _I2C_SW_RETRIES@GOTPAGE
Lloh5:
	ldr	x25, [x25, _I2C_SW_RETRIES@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #1
	bl	_write_bit_to_ddc
	ldr	w1, [x23]
	mov	x0, x20
	bl	_read_bit_from_ddc
	cbnz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x25]
	add	x24, x24, #1
	cmp	x24, x8
	b.lt	LBB0_1
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_udelay
	ldr	w1, [x22]
	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_6
; %bb.5:
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #0
	bl	_write_bit_to_ddc
	mov	x0, x19
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #0
	bl	_write_bit_to_ddc
	mov	x0, x19
	bl	_udelay
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCL,4,2                        ; @SCL
	.comm	_SDA,4,2                        ; @SDA
	.comm	_I2C_SW_RETRIES,8,3             ; @I2C_SW_RETRIES
	.no_dead_strip	_start_sync_sw
.subsections_via_symbols
