	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsxx_eeh_fifo_flush_poll
_rsxx_eeh_fifo_flush_poll:              ## @rsxx_eeh_fifo_flush_poll
	.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
	movq	_PCI_RECONFIG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	movq	_RSXX_FLUSH_BUSY@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.1:
	movl	$1, %edi
	callq	_ssleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.2:
	movl	$1, %edi
	callq	_ssleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.3:
	movl	$1, %edi
	callq	_ssleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.4:
	movl	$1, %edi
	callq	_ssleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.5:
	movl	$1, %edi
	callq	_ssleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.6:
	movl	$1, %edi
	callq	_ssleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.7:
	movl	$1, %edi
	callq	_ssleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.8:
	movl	$1, %edi
	callq	_ssleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.9:
	movl	$1, %edi
	callq	_ssleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.10:
	movl	$1, %edi
	callq	_ssleep
	movl	$-1, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	_RSXX_FLUSH_TIMEOUT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_CARD_TO_DEV
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_RECONFIG,8,3               ## @PCI_RECONFIG
	.comm	_RSXX_FLUSH_BUSY,4,2            ## @RSXX_FLUSH_BUSY
	.comm	_RSXX_FLUSH_TIMEOUT,4,2         ## @RSXX_FLUSH_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW: flash controller timeout\n"

	.no_dead_strip	_rsxx_eeh_fifo_flush_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsxx_eeh_fifo_flush_poll
_rsxx_eeh_fifo_flush_poll:              ; @rsxx_eeh_fifo_flush_poll
	.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]
Lloh0:
	adrp	x20, _PCI_RECONFIG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCI_RECONFIG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
Lloh2:
	adrp	x21, _RSXX_FLUSH_BUSY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RSXX_FLUSH_BUSY@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.1:
	mov	w0, #1
	bl	_ssleep
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.2:
	mov	w0, #1
	bl	_ssleep
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.3:
	mov	w0, #1
	bl	_ssleep
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.4:
	mov	w0, #1
	bl	_ssleep
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.5:
	mov	w0, #1
	bl	_ssleep
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.6:
	mov	w0, #1
	bl	_ssleep
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
	mov	w0, #1
	bl	_ssleep
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.8:
	mov	w0, #1
	bl	_ssleep
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.9:
	mov	w0, #1
	bl	_ssleep
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	mov	w0, #1
	bl	_ssleep
	mov	w0, #-1
	b	LBB0_14
LBB0_11:
Lloh4:
	adrp	x8, _RSXX_FLUSH_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RSXX_FLUSH_TIMEOUT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_CARD_TO_DEV
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_RECONFIG,8,3               ; @PCI_RECONFIG
	.comm	_RSXX_FLUSH_BUSY,4,2            ; @RSXX_FLUSH_BUSY
	.comm	_RSXX_FLUSH_TIMEOUT,4,2         ; @RSXX_FLUSH_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW: flash controller timeout\n"

	.no_dead_strip	_rsxx_eeh_fifo_flush_poll
.subsections_via_symbols
