	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_poll_globr
_i40e_poll_globr:                       ## @i40e_poll_globr
	.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, %r14
	testq	%rsi, %rsi
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	_I40E_GLGEN_RSTAT@GOTPCREL(%rip), %r12
	movq	_I40E_GLGEN_RSTAT_DEVSTATE_MASK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_rd32
	testq	%rax, (%r13)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movl	$100, %edi
	callq	_msleep
	decq	%rbx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_hw_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_hw_dbg
	movq	_I40E_ERR_RESET_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_GLGEN_RSTAT,4,2           ## @I40E_GLGEN_RSTAT
	.comm	_I40E_GLGEN_RSTAT_DEVSTATE_MASK,8,3 ## @I40E_GLGEN_RSTAT_DEVSTATE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Global reset failed.\n"

L_.str.1:                               ## @.str.1
	.asciz	"I40E_GLGEN_RSTAT = 0x%x\n"

	.comm	_I40E_ERR_RESET_FAILED,4,2      ## @I40E_ERR_RESET_FAILED
	.no_dead_strip	_i40e_poll_globr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_poll_globr
_i40e_poll_globr:                       ; @i40e_poll_globr
	.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
	cmp	x1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x22, _I40E_GLGEN_RSTAT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _I40E_GLGEN_RSTAT@GOTPAGEOFF]
Lloh2:
	adrp	x23, _I40E_GLGEN_RSTAT_DEVSTATE_MASK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _I40E_GLGEN_RSTAT_DEVSTATE_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rd32
	ldr	x8, [x23]
	tst	x8, x0
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	mov	w0, #100
	bl	_msleep
	subs	x20, x20, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh8:
	adrp	x8, _I40E_ERR_RESET_FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40E_ERR_RESET_FAILED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_GLGEN_RSTAT,4,2           ; @I40E_GLGEN_RSTAT
	.comm	_I40E_GLGEN_RSTAT_DEVSTATE_MASK,8,3 ; @I40E_GLGEN_RSTAT_DEVSTATE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Global reset failed.\n"

l_.str.1:                               ; @.str.1
	.asciz	"I40E_GLGEN_RSTAT = 0x%x\n"

	.comm	_I40E_ERR_RESET_FAILED,4,2      ; @I40E_ERR_RESET_FAILED
	.no_dead_strip	_i40e_poll_globr
.subsections_via_symbols
