	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function force_idle
_force_idle:                            ## @force_idle
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	movq	_SGI_I2C_FORCE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*24(%r14)
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	_SGI_I2C_NOT_IDLE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	callq	*8(%r14)
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_2
LBB0_4:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movl	16(%r14), %edi
	callq	*8(%r14)
	movq	_SGI_I2C_BUS_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SGI_I2C_FORCE_IDLE,4,2         ## @SGI_I2C_FORCE_IDLE
	.comm	_SGI_I2C_NOT_IDLE,4,2           ## @SGI_I2C_NOT_IDLE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SGI_I2C_BUS_ERR,4,2            ## @SGI_I2C_BUS_ERR
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_force_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function force_idle
_force_idle:                            ; @force_idle
	.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, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x9, _SGI_I2C_FORCE_IDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SGI_I2C_FORCE_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w20, #0
Lloh3:
	adrp	x21, _SGI_I2C_NOT_IDLE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SGI_I2C_NOT_IDLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x19, #16]
	blr	x8
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_4:
Lloh5:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x19, #16]
	blr	x8
Lloh7:
	adrp	x8, _SGI_I2C_BUS_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SGI_I2C_BUS_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.6:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SGI_I2C_FORCE_IDLE,4,2         ; @SGI_I2C_FORCE_IDLE
	.comm	_SGI_I2C_NOT_IDLE,4,2           ; @SGI_I2C_NOT_IDLE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SGI_I2C_BUS_ERR,4,2            ; @SGI_I2C_BUS_ERR
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_force_idle
.subsections_via_symbols
