	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_poll_flash_status_reg
_qlcnic_83xx_poll_flash_status_reg:     ## @qlcnic_83xx_poll_flash_status_reg
	.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, %r15
	movq	_QLC_83XX_FLASH_READ_RETRY_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %r14
	movq	_EIO@GOTPCREL(%rip), %r12
	movq	_QLC_83XX_FLASH_STATUS_READY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_QLC_83XX_FLASH_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_QLCRD32
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	xorl	%edx, %edx
	subl	(%r12), %edx
	cmpl	%edx, %eax
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	notl	%ecx
	testl	%ecx, (%r13)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1100, %esi                     ## imm = 0x44C
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_1
## %bb.4:
	xorl	%edx, %edx
	subl	(%r12), %edx
	jmp	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jne	LBB0_6
LBB0_5:
	movl	%edx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_FLASH_READ_RETRY_COUNT,4,2 ## @QLC_83XX_FLASH_READ_RETRY_COUNT
	.comm	_QLC_83XX_FLASH_STATUS,4,2      ## @QLC_83XX_FLASH_STATUS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLC_83XX_FLASH_STATUS_READY,4,2 ## @QLC_83XX_FLASH_STATUS_READY
	.no_dead_strip	_qlcnic_83xx_poll_flash_status_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_poll_flash_status_reg
_qlcnic_83xx_poll_flash_status_reg:     ; @qlcnic_83xx_poll_flash_status_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, _QLC_83XX_FLASH_READ_RETRY_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_FLASH_READ_RETRY_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	str	wzr, [sp, #12]
Lloh3:
	adrp	x21, _QLC_83XX_FLASH_STATUS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _QLC_83XX_FLASH_STATUS@GOTPAGEOFF]
Lloh5:
	adrp	x22, _EIO@GOTPAGE
Lloh6:
	ldr	x22, [x22, _EIO@GOTPAGEOFF]
Lloh7:
	adrp	x23, _QLC_83XX_FLASH_STATUS_READY@GOTPAGE
Lloh8:
	ldr	x23, [x23, _QLC_83XX_FLASH_STATUS_READY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_QLCRD32
	mov	x8, x0
	ldr	w0, [sp, #12]
	ldr	w9, [x22]
	cmn	w0, w9
	b.eq	LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w10, [x23]
	bics	wzr, w10, w8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1000
	mov	w1, #1100
	bl	_usleep_range
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.4:
	ldr	w8, [x22]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	cbz	w20, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	neg	w0, w9
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_FLASH_READ_RETRY_COUNT,4,2 ; @QLC_83XX_FLASH_READ_RETRY_COUNT
	.comm	_QLC_83XX_FLASH_STATUS,4,2      ; @QLC_83XX_FLASH_STATUS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLC_83XX_FLASH_STATUS_READY,4,2 ; @QLC_83XX_FLASH_STATUS_READY
	.no_dead_strip	_qlcnic_83xx_poll_flash_status_reg
.subsections_via_symbols
