	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_mii_bus_write_generic
_ixgbe_mii_bus_write_generic:           ## @ixgbe_mii_bus_write_generic
	.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
	movl	%r8d, %ebx
	movq	%rcx, %r13
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	%r8d, %esi
	callq	*8(%rdi)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_9
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_IXGBE_MSRWD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_MSCA_PHY_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	_MII_ADDR_C45@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	$21, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, %esi
	andl	%r15d, %esi
	orl	%r12d, %esi
	movq	_IXGBE_MSCA_ADDR_CYCLE@GOTPCREL(%rip), %rax
	movl	%esi, %r13d
	jmp	LBB0_5
LBB0_4:
	movl	$5, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, %r13d
	andl	%r15d, %r13d
	movq	_IXGBE_MSCA_DEV_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	orl	%r12d, %r13d
	movq	_IXGBE_MSCA_OLD_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r13d, %esi
	movq	_IXGBE_MSCA_WRITE@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %esi
	movq	_IXGBE_MSCA_MDI_COMMAND@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ixgbe_msca_cmd
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:
	movq	_MII_ADDR_C45@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_IXGBE_MSCA_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	orl	(%r12), %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_ixgbe_msca_cmd
	movq	%rax, %rbx
LBB0_8:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	*(%r14)
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,8,3                      ## @EBUSY
	.comm	_IXGBE_MSRWD,4,2                ## @IXGBE_MSRWD
	.comm	_IXGBE_MSCA_PHY_ADDR_SHIFT,4,2  ## @IXGBE_MSCA_PHY_ADDR_SHIFT
	.comm	_MII_ADDR_C45,4,2               ## @MII_ADDR_C45
	.comm	_IXGBE_MSCA_ADDR_CYCLE,4,2      ## @IXGBE_MSCA_ADDR_CYCLE
	.comm	_IXGBE_MSCA_MDI_COMMAND,4,2     ## @IXGBE_MSCA_MDI_COMMAND
	.comm	_IXGBE_MSCA_DEV_TYPE_SHIFT,4,2  ## @IXGBE_MSCA_DEV_TYPE_SHIFT
	.comm	_IXGBE_MSCA_OLD_PROTOCOL,4,2    ## @IXGBE_MSCA_OLD_PROTOCOL
	.comm	_IXGBE_MSCA_WRITE,4,2           ## @IXGBE_MSCA_WRITE
	.no_dead_strip	_ixgbe_mii_bus_write_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_mii_bus_write_generic
_ixgbe_mii_bus_write_generic:           ; @ixgbe_mii_bus_write_generic
	.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	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	mov	x1, x4
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x22, x8
	b	LBB0_9
LBB0_2:
Lloh3:
	adrp	x8, _IXGBE_MSRWD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_MSRWD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_IXGBE_WRITE_REG
Lloh6:
	adrp	x8, _IXGBE_MSCA_PHY_ADDR_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGBE_MSCA_PHY_ADDR_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w22, w22, w8
Lloh9:
	adrp	x23, _MII_ADDR_C45@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MII_ADDR_C45@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #21
	mov	w1, #0
	bl	_GENMASK
	and	w8, w0, w21
	orr	w8, w8, w22
Lloh11:
	adrp	x9, _IXGBE_MSCA_ADDR_CYCLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IXGBE_MSCA_ADDR_CYCLE@GOTPAGEOFF]
	mov	x24, x8
	b	LBB0_5
LBB0_4:
	mov	w0, #5
	mov	w1, #0
	bl	_GENMASK
	and	w8, w0, w21
Lloh13:
	adrp	x9, _IXGBE_MSCA_DEV_TYPE_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IXGBE_MSCA_DEV_TYPE_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w24, w8, w22
Lloh16:
	adrp	x8, _IXGBE_MSCA_OLD_PROTOCOL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IXGBE_MSCA_OLD_PROTOCOL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w8, w24, w8
Lloh19:
	adrp	x9, _IXGBE_MSCA_WRITE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IXGBE_MSCA_WRITE@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x25, _IXGBE_MSCA_MDI_COMMAND@GOTPAGE
Lloh22:
	ldr	x25, [x25, _IXGBE_MSCA_MDI_COMMAND@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_ixgbe_msca_cmd
	mov	x22, x0
	tbnz	x0, #63, LBB0_8
; %bb.6:
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
Lloh23:
	adrp	x8, _IXGBE_MSCA_WRITE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IXGBE_MSCA_WRITE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w8, w8, w24
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_ixgbe_msca_cmd
	mov	x22, x0
LBB0_8:
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_9:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,8,3                      ; @EBUSY
	.comm	_IXGBE_MSRWD,4,2                ; @IXGBE_MSRWD
	.comm	_IXGBE_MSCA_PHY_ADDR_SHIFT,4,2  ; @IXGBE_MSCA_PHY_ADDR_SHIFT
	.comm	_MII_ADDR_C45,4,2               ; @MII_ADDR_C45
	.comm	_IXGBE_MSCA_ADDR_CYCLE,4,2      ; @IXGBE_MSCA_ADDR_CYCLE
	.comm	_IXGBE_MSCA_MDI_COMMAND,4,2     ; @IXGBE_MSCA_MDI_COMMAND
	.comm	_IXGBE_MSCA_DEV_TYPE_SHIFT,4,2  ; @IXGBE_MSCA_DEV_TYPE_SHIFT
	.comm	_IXGBE_MSCA_OLD_PROTOCOL,4,2    ; @IXGBE_MSCA_OLD_PROTOCOL
	.comm	_IXGBE_MSCA_WRITE,4,2           ; @IXGBE_MSCA_WRITE
	.no_dead_strip	_ixgbe_mii_bus_write_generic
.subsections_via_symbols
