	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macb_mii_init
_macb_mii_init:                         ## @macb_mii_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_NCR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MACB_BIT
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_macb_writel
	xorl	%eax, %eax
	callq	_mdiobus_alloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_macb_mdio_read@GOTPCREL(%rip), %rcx
	movq	%rcx, 40(%rax)
	movq	_macb_mdio_write@GOTPCREL(%rip), %rcx
	movq	%rcx, 32(%rax)
	movl	24(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r12), %rax
	movq	(%rax), %rcx
	movl	8(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	movq	(%r12), %rsi
	movq	%r12, 16(%rsi)
	movq	24(%r12), %rax
	addq	$16, %rax
	movq	%rax, 8(%rsi)
	movq	16(%r12), %rdi
	callq	_dev_set_drvdata
	movq	24(%r12), %rax
	movq	16(%rax), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_of_phy_register_fixed_link
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	(%r12), %rdi
	callq	_mdiobus_register
	jmp	LBB0_8
LBB0_7:
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_of_mdiobus_register
LBB0_8:
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:
	testq	%r15, %r15
	jne	LBB0_13
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %r14d
	jmp	LBB0_16
LBB0_9:
	movq	16(%r12), %rdi
	callq	_macb_mii_probe
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %r14d
	movq	(%r12), %rdi
	callq	_mdiobus_unregister
	testq	%r15, %r15
	je	LBB0_15
LBB0_13:
	movq	%r15, %rdi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_of_phy_deregister_fixed_link
	jmp	LBB0_15
LBB0_5:
	movq	24(%r12), %rdi
	addq	$16, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_dev_err
LBB0_15:
	movl	8(%r12), %edi
	callq	_of_node_put
	movq	(%r12), %rdi
	callq	_mdiobus_free
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_NCR,4,2                        ## @NCR
	.comm	_MPE,4,2                        ## @MPE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MACB_mii_bus"

	.comm	_macb_mdio_read,4,2             ## @macb_mdio_read
	.comm	_macb_mdio_write,4,2            ## @macb_mdio_write
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%s-%x"

L_.str.2:                               ## @.str.2
	.asciz	"broken fixed-link specification %pOF\n"

	.no_dead_strip	_macb_mii_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macb_mii_init
_macb_mii_init:                         ; @macb_mii_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _NCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NCR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _MPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_MACB_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_macb_writel
	bl	_mdiobus_alloc
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.1:
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
Lloh11:
	adrp	x9, _macb_mdio_read@GOTPAGE
Lloh12:
	ldr	x9, [x9, _macb_mdio_read@GOTPAGEOFF]
	str	x8, [x0]
Lloh13:
	adrp	x8, _macb_mdio_write@GOTPAGE
Lloh14:
	ldr	x8, [x8, _macb_mdio_write@GOTPAGEOFF]
	stp	x8, x9, [x0, #32]
	ldr	w0, [x0, #24]
Lloh15:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x8, [x19, #24]
	ldr	x3, [x8]
	ldr	w4, [x8, #8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	ldr	x1, [x19]
	ldp	x0, x8, [x19, #16]
	add	x8, x8, #16
	stp	x8, x19, [x1, #8]
	bl	_dev_set_drvdata
	ldr	x8, [x19, #24]
	ldr	x20, [x8, #16]
	cbz	x20, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_of_phy_register_fixed_link
	tbnz	x0, #63, LBB0_12
; %bb.4:
	ldr	x0, [x19]
	bl	_mdiobus_register
	mov	x21, x0
	cbnz	w0, LBB0_6
	b	LBB0_10
LBB0_5:
	ldr	x0, [x19]
	mov	x1, x20
	bl	_of_mdiobus_register
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_6:
	cbz	x20, LBB0_13
LBB0_7:
	mov	x0, x20
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_13
; %bb.8:
	mov	x0, x20
	bl	_of_phy_deregister_fixed_link
	b	LBB0_13
LBB0_9:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_10:
	ldr	x0, [x19, #16]
	bl	_macb_mii_probe
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.11:
	ldr	x0, [x19]
	bl	_mdiobus_unregister
	cbnz	x20, LBB0_7
	b	LBB0_13
LBB0_12:
	neg	w21, w21
	ldr	x8, [x19, #24]
	add	x0, x8, #16
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_13:
	ldr	w0, [x19, #8]
	bl	_of_node_put
	ldr	x0, [x19]
	bl	_mdiobus_free
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_NCR,4,2                        ; @NCR
	.comm	_MPE,4,2                        ; @MPE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MACB_mii_bus"

	.comm	_macb_mdio_read,4,2             ; @macb_mdio_read
	.comm	_macb_mdio_write,4,2            ; @macb_mdio_write
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%s-%x"

l_.str.2:                               ; @.str.2
	.asciz	"broken fixed-link specification %pOF\n"

	.no_dead_strip	_macb_mii_init
.subsections_via_symbols
