	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_scl_high_sw
_wait_for_scl_high_sw:                  ## @wait_for_scl_high_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	_I2C_SW_TIMEOUT_DELAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
	orq	%rdx, %rcx
	shrq	$32, %rcx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%r12
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, %r15d
LBB0_3:
	movq	%r12, %rdi
	callq	_udelay
	xorl	%ebx, %ebx
	testq	%r15, %r15
	cmovgq	%r15, %rbx
	incq	%rbx
	movq	_SCL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_read_bit_from_ddc
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_udelay
	decq	%rbx
	jne	LBB0_4
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movl	$1, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SW_TIMEOUT_DELAY,8,3       ## @I2C_SW_TIMEOUT_DELAY
	.comm	_SCL,4,2                        ## @SCL
	.no_dead_strip	_wait_for_scl_high_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_for_scl_high_sw
_wait_for_scl_high_sw:                  ; @wait_for_scl_high_sw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _I2C_SW_TIMEOUT_DELAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_SW_TIMEOUT_DELAY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sdiv	x21, x8, x2
	mov	x0, x2
	bl	_udelay
	cmp	x21, #0
	csel	x8, x21, xzr, gt
	add	x21, x8, #1
Lloh3:
	adrp	x22, _SCL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SCL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_read_bit_from_ddc
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_udelay
	subs	x21, x21, #1
	b.ne	LBB0_1
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SW_TIMEOUT_DELAY,8,3       ; @I2C_SW_TIMEOUT_DELAY
	.comm	_SCL,4,2                        ; @SCL
	.no_dead_strip	_wait_for_scl_high_sw
.subsections_via_symbols
