	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_mii_bus_init             ## -- Begin function ixgbe_mii_bus_init
	.p2align	4, 0x90
_ixgbe_mii_bus_init:                    ## @ixgbe_mii_bus_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	8(%r14), %rdi
	movq	16(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_devm_mdiobus_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_ixgbe_x550em_a_has_mii
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	_ixgbe_x550em_a_mii_bus_write@GOTPCREL(%rip), %rax
	movq	_ixgbe_x550em_a_mii_bus_read@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_3:
	movq	_ixgbe_mii_bus_write@GOTPCREL(%rip), %rax
	movq	_ixgbe_mii_bus_read@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	%rcx, 48(%rbx)
	movq	%rax, 40(%rbx)
	movl	32(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ixgbe_driver_name@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_name
	leaq	L_.str(%rip), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movq	%r12, %rcx
	movq	%rax, %r8
	callq	_snprintf
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r14, 24(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	xorl	%r12d, %r12d
	movl	$31, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, 8(%rbx)
	movq	_MDIO_SUPPORTS_C45@GOTPCREL(%rip), %rax
	movq	_MDIO_SUPPORTS_C22@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movq	%rbx, %rdi
	callq	_mdiobus_register
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_devm_mdiobus_free
	movl	%r13d, %r12d
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, (%r14)
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ixgbe_x550em_a_mii_bus_read,4,2 ## @ixgbe_x550em_a_mii_bus_read
	.comm	_ixgbe_x550em_a_mii_bus_write,4,2 ## @ixgbe_x550em_a_mii_bus_write
	.comm	_ixgbe_mii_bus_read,4,2         ## @ixgbe_mii_bus_read
	.comm	_ixgbe_mii_bus_write,4,2        ## @ixgbe_mii_bus_write
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-mdio-%s"

	.comm	_ixgbe_driver_name,8,3          ## @ixgbe_driver_name
L_.str.1:                               ## @.str.1
	.asciz	"ixgbe-mdio"

	.comm	_MDIO_SUPPORTS_C45,4,2          ## @MDIO_SUPPORTS_C45
	.comm	_MDIO_SUPPORTS_C22,4,2          ## @MDIO_SUPPORTS_C22
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_mii_bus_init             ; -- Begin function ixgbe_mii_bus_init
	.p2align	2
_ixgbe_mii_bus_init:                    ; @ixgbe_mii_bus_init
	.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	x21, x0
	ldr	x26, [x0, #8]
	ldp	x19, x22, [x26, #8]
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_devm_mdiobus_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_ixgbe_x550em_a_has_mii
	cbz	w0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _ixgbe_x550em_a_mii_bus_write@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ixgbe_x550em_a_mii_bus_write@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ixgbe_x550em_a_mii_bus_read@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ixgbe_x550em_a_mii_bus_read@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_5:
Lloh10:
	adrp	x8, _ixgbe_mii_bus_write@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ixgbe_mii_bus_write@GOTPAGEOFF]
Lloh12:
	adrp	x9, _ixgbe_mii_bus_read@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ixgbe_mii_bus_read@GOTPAGEOFF]
LBB0_6:
	stp	x8, x9, [x20, #40]
	ldr	w23, [x20, #32]
Lloh14:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
Lloh17:
	adrp	x8, _ixgbe_driver_name@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ixgbe_driver_name@GOTPAGEOFF]
Lloh19:
	ldr	x25, [x8]
	mov	x0, x22
	bl	_pci_name
	mov	x4, x0
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x1, x24
	mov	x3, x25
	bl	_snprintf
Lloh22:
	adrp	x8, l_.str.1@PAGE
Lloh23:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x20]
	stp	x19, x26, [x20, #16]
	mov	w0, #31
	mov	w1, #0
	bl	_GENMASK
	str	w0, [x20, #8]
Lloh24:
	adrp	x8, _MDIO_SUPPORTS_C45@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MDIO_SUPPORTS_C45@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _MDIO_SUPPORTS_C22@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MDIO_SUPPORTS_C22@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	mov	x0, x20
	bl	_mdiobus_register
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.7:
	str	x20, [x26]
	b	LBB0_10
LBB0_8:
	neg	w21, w23
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_mdiobus_free
LBB0_10:
	mov	x0, x21
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ixgbe_x550em_a_mii_bus_read,4,2 ; @ixgbe_x550em_a_mii_bus_read
	.comm	_ixgbe_x550em_a_mii_bus_write,4,2 ; @ixgbe_x550em_a_mii_bus_write
	.comm	_ixgbe_mii_bus_read,4,2         ; @ixgbe_mii_bus_read
	.comm	_ixgbe_mii_bus_write,4,2        ; @ixgbe_mii_bus_write
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-mdio-%s"

	.comm	_ixgbe_driver_name,8,3          ; @ixgbe_driver_name
l_.str.1:                               ; @.str.1
	.asciz	"ixgbe-mdio"

	.comm	_MDIO_SUPPORTS_C45,4,2          ; @MDIO_SUPPORTS_C45
	.comm	_MDIO_SUPPORTS_C22,4,2          ; @MDIO_SUPPORTS_C22
.subsections_via_symbols
