	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_init_phy
_stmmac_init_phy:                       ## @stmmac_init_phy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_phylink_of_phy_connect
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	16(%rbx), %rax
LBB0_3:
	movl	(%rax), %r14d
	movl	8(%rbx), %edi
	movl	%r14d, %esi
	callq	_mdiobus_get_phy
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movl	(%rbx), %edi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_phylink_connect_phy            ## TAILCALL
LBB0_4:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no phy at addr %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_stmmac_init_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_init_phy
_stmmac_init_phy:                       ; @stmmac_init_phy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	mov	w2, #0
	bl	_phylink_of_phy_connect
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
LBB0_3:
	ldr	w20, [x8]
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_mdiobus_get_phy
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phylink_connect_phy
LBB0_5:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_netdev_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no phy at addr %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_stmmac_init_phy
.subsections_via_symbols
