	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qup_i2c_poll_state_mask
_qup_i2c_poll_state_mask:               ## @qup_i2c_poll_state_mask
	.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, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_QUP_STATE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_QUP_STATE_VALID@GOTPCREL(%rip), %rdx
	movl	%eax, %ecx
	andl	%ebx, %ecx
	xorl	%r14d, %r14d
	cmpl	%r15d, %ecx
	jne	LBB0_2
## %bb.1:
	andl	(%rdx), %eax
	jne	LBB0_5
LBB0_2:
	movl	$1, %edi
	callq	_udelay
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	andl	%eax, %ebx
	cmpl	%r15d, %ebx
	jne	LBB0_4
## %bb.3:
	movq	_QUP_STATE_VALID@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_5
LBB0_4:
	movl	$1, %edi
	callq	_udelay
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUP_STATE,8,3                  ## @QUP_STATE
	.comm	_QUP_STATE_VALID,4,2            ## @QUP_STATE_VALID
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_qup_i2c_poll_state_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qup_i2c_poll_state_mask
_qup_i2c_poll_state_mask:               ; @qup_i2c_poll_state_mask
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _QUP_STATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _QUP_STATE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x23, _QUP_STATE_VALID@GOTPAGE
Lloh3:
	ldr	x23, [x23, _QUP_STATE_VALID@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w0
	and	w9, w0, w20
	cmp	w9, w19
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x23]
	and	w8, w8, w0
	and	w9, w0, w20
	cmp	w9, w19
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #1
	bl	_udelay
Lloh4:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_QUP_STATE,8,3                  ; @QUP_STATE
	.comm	_QUP_STATE_VALID,4,2            ; @QUP_STATE_VALID
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_qup_i2c_poll_state_mask
.subsections_via_symbols
