	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qup_i2c_bus_active
_qup_i2c_bus_active:                    ## @qup_i2c_bus_active
	.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	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_QUP_I2C_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_I2C_STATUS_BUS_ACTIVE@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.2:
	movslq	-44(%rbp), %r12                 ## 4-byte Folded Reload
	leaq	(%rbx,%r12,4), %r13
	addl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_time_after
	xorl	%ecx, %ecx
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	_usleep_range
	movq	_QUP_I2C_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	testl	%eax, (%r14)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_QUP_I2C_STATUS,8,3             ## @QUP_I2C_STATUS
	.comm	_I2C_STATUS_BUS_ACTIVE,4,2      ## @I2C_STATUS_BUS_ACTIVE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_qup_i2c_bus_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qup_i2c_bus_active
_qup_i2c_bus_active:                    ; @qup_i2c_bus_active
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldrsw	x23, [x24]
	ldr	x8, [x0]
Lloh2:
	adrp	x25, _QUP_I2C_STATUS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _QUP_I2C_STATUS@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
Lloh4:
	adrp	x26, _I2C_STATUS_BUS_ACTIVE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _I2C_STATUS_BUS_ACTIVE@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	w21, #0
	lsl	w22, w19, #1
Lloh6:
	adrp	x27, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ETIMEDOUT@GOTPAGEOFF]
	add	x23, x23, w19, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x23
	bl	_time_after
	ldr	w8, [x27]
	cmp	x0, #0
	csneg	w21, w21, w8, eq
	mov	x0, x19
	mov	x1, x22
	bl	_usleep_range
	ldr	x8, [x20]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_QUP_I2C_STATUS,8,3             ; @QUP_I2C_STATUS
	.comm	_I2C_STATUS_BUS_ACTIVE,4,2      ; @I2C_STATUS_BUS_ACTIVE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_qup_i2c_bus_active
.subsections_via_symbols
