	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function platform_phy_connect
_platform_phy_connect:                  ## @platform_phy_connect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	movl	8(%rdi), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	jne	LBB0_1
## %bb.2:
	movq	_bgmac_adjust_link@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_bgmac_nicpm_speed_set@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	callq	_of_phy_get_and_connect
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bgmac_nicpm_speed_set,4,2      ## @bgmac_nicpm_speed_set
	.comm	_bgmac_adjust_link,4,2          ## @bgmac_adjust_link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY connection failed\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function platform_phy_connect
_platform_phy_connect:                  ; @platform_phy_connect
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x0, #8]
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _bgmac_adjust_link@GOTPAGE
Lloh1:
	ldr	x10, [x10, _bgmac_adjust_link@GOTPAGEOFF]
	ldr	w1, [x9]
Lloh2:
	adrp	x9, _bgmac_nicpm_speed_set@GOTPAGE
Lloh3:
	ldr	x9, [x9, _bgmac_nicpm_speed_set@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w2, [x8]
	bl	_of_phy_get_and_connect
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_bgmac_nicpm_speed_set,4,2      ; @bgmac_nicpm_speed_set
	.comm	_bgmac_adjust_link,4,2          ; @bgmac_adjust_link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY connection failed\n"

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