	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca_isa_waitforcompletion
_pca_isa_waitforcompletion:             ## @pca_isa_waitforcompletion
	.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
	movq	%rdi, %r12
	movq	_irq@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	js	LBB0_2
## %bb.1:
	movq	_pca_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_I2C_PCA_CON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pca_isa_readbyte
	movq	_I2C_PCA_CON_SI@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_pca_isa_ops@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_wait_event_timeout
	movq	%rax, %r15
	jmp	LBB0_7
LBB0_2:
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_pca_isa_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	(%rcx), %r14
	movq	_I2C_PCA_CON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pca_isa_readbyte
	movq	_I2C_PCA_CON_SI@GOTPCREL(%rip), %r13
	movq	$-1, %r15
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.3:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movl	$100, %edi
	callq	_udelay
	movq	_I2C_PCA_CON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pca_isa_readbyte
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.6:
	movq	%rbx, %r15
LBB0_7:
	xorl	%eax, %eax
	testq	%r15, %r15
	setg	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_irq,4,2                        ## @irq
	.comm	_pca_wait,4,2                   ## @pca_wait
	.comm	_I2C_PCA_CON,4,2                ## @I2C_PCA_CON
	.comm	_I2C_PCA_CON_SI,4,2             ## @I2C_PCA_CON_SI
	.comm	_pca_isa_ops,8,3                ## @pca_isa_ops
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_pca_isa_waitforcompletion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca_isa_waitforcompletion
_pca_isa_waitforcompletion:             ; @pca_isa_waitforcompletion
	.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	x19, x0
Lloh0:
	adrp	x8, _irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _irq@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tbnz	w8, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _pca_wait@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pca_wait@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _I2C_PCA_CON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_PCA_CON@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pca_isa_readbyte
Lloh9:
	adrp	x8, _I2C_PCA_CON_SI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_PCA_CON_SI@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w1, w8, w0
Lloh12:
	adrp	x8, _pca_isa_ops@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pca_isa_ops@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	mov	x0, x20
	bl	_wait_event_timeout
	mov	x20, x0
	b	LBB0_7
LBB0_2:
Lloh15:
	adrp	x22, _jiffies@GOTPAGE
Lloh16:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x20, [x22]
Lloh17:
	adrp	x8, _pca_isa_ops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pca_isa_ops@GOTPAGEOFF]
Lloh19:
	ldr	x21, [x8]
Lloh20:
	adrp	x23, _I2C_PCA_CON@GOTPAGE
Lloh21:
	ldr	x23, [x23, _I2C_PCA_CON@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pca_isa_readbyte
Lloh22:
	adrp	x24, _I2C_PCA_CON_SI@GOTPAGE
Lloh23:
	ldr	x24, [x24, _I2C_PCA_CON_SI@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	x20, #-1
	b	LBB0_7
LBB0_4:
	add	x21, x21, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	mov	x1, x21
	bl	_time_before
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pca_isa_readbyte
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
LBB0_7:
	cmp	x20, #0
	cset	w0, gt
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_irq,4,2                        ; @irq
	.comm	_pca_wait,4,2                   ; @pca_wait
	.comm	_I2C_PCA_CON,4,2                ; @I2C_PCA_CON
	.comm	_I2C_PCA_CON_SI,4,2             ; @I2C_PCA_CON_SI
	.comm	_pca_isa_ops,8,3                ; @pca_isa_ops
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_pca_isa_waitforcompletion
.subsections_via_symbols
