	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_iosf_wait
_ixgbe_iosf_wait:                       ## @ixgbe_iosf_wait
	.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	_IXGBE_MDIO_COMMAND_TIMEOUT@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_IXGBE_SB_IOSF_INDIRECT_CTRL@GOTPCREL(%rip), %r14
	movq	_IXGBE_SB_IOSF_CTRL_BUSY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	movq	%rax, %r13
	testq	%rax, (%r12)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	callq	_udelay
	incq	%rbx
	movq	_IXGBE_MDIO_COMMAND_TIMEOUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
                                        ## implicit-def: $r13
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, (%rax)
LBB0_7:
	xorl	%eax, %eax
	movq	_IXGBE_MDIO_COMMAND_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_MDIO_COMMAND_TIMEOUT,8,3 ## @IXGBE_MDIO_COMMAND_TIMEOUT
	.comm	_IXGBE_SB_IOSF_INDIRECT_CTRL,4,2 ## @IXGBE_SB_IOSF_INDIRECT_CTRL
	.comm	_IXGBE_SB_IOSF_CTRL_BUSY,8,3    ## @IXGBE_SB_IOSF_CTRL_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IOSF wait timed out\n"

	.comm	_IXGBE_ERR_PHY,4,2              ## @IXGBE_ERR_PHY
	.no_dead_strip	_ixgbe_iosf_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_iosf_wait
_ixgbe_iosf_wait:                       ; @ixgbe_iosf_wait
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _IXGBE_MDIO_COMMAND_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IXGBE_MDIO_COMMAND_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x24, _IXGBE_SB_IOSF_INDIRECT_CTRL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IXGBE_SB_IOSF_INDIRECT_CTRL@GOTPAGEOFF]
Lloh4:
	adrp	x25, _IXGBE_SB_IOSF_CTRL_BUSY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IXGBE_SB_IOSF_CTRL_BUSY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	mov	x21, x0
	ldr	x8, [x25]
	tst	x8, x0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_udelay
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_4:
	cbz	x20, LBB0_6
LBB0_5:
	str	x21, [x20]
LBB0_6:
	ldr	x8, [x22]
	cmp	x23, x8
	b.ne	LBB0_8
; %bb.7:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh8:
	adrp	x8, _IXGBE_ERR_PHY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXGBE_ERR_PHY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x23, #0
                                        ; implicit-def: $x21
	cbnz	x20, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_MDIO_COMMAND_TIMEOUT,8,3 ; @IXGBE_MDIO_COMMAND_TIMEOUT
	.comm	_IXGBE_SB_IOSF_INDIRECT_CTRL,4,2 ; @IXGBE_SB_IOSF_INDIRECT_CTRL
	.comm	_IXGBE_SB_IOSF_CTRL_BUSY,8,3    ; @IXGBE_SB_IOSF_CTRL_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IOSF wait timed out\n"

	.comm	_IXGBE_ERR_PHY,4,2              ; @IXGBE_ERR_PHY
	.no_dead_strip	_ixgbe_iosf_wait
.subsections_via_symbols
