	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa168_init_phy
_pxa168_init_phy:                       ## @pxa168_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	je	LBB0_1
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	12(%r14), %esi
	movl	20(%r14), %edi
	callq	_mdiobus_scan
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_pxa168_eth_adjust_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r14), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_phy_connect_direct
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	12(%r14), %eax
	movl	%eax, -40(%rbp)
	movq	(%r14), %r15
	movq	%r15, -56(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -44(%rbp)
	movq	_PHY_BASIC_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bitmap_copy
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_phy_ethtool_set_link_ksettings
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_pxa168_eth_adjust_link,4,2     ## @pxa168_eth_adjust_link
	.comm	_PHY_BASIC_FEATURES,4,2         ## @PHY_BASIC_FEATURES
	.comm	___ETHTOOL_LINK_MODE_MASK_NBITS,4,2 ## @__ETHTOOL_LINK_MODE_MASK_NBITS
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_pxa168_init_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa168_init_phy
_pxa168_init_phy:                       ; @pxa168_init_phy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w0, #0
LBB0_2:
	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
	add	sp, sp, #80
	ret
LBB0_3:
	mov	x20, x0
	ldr	w0, [x0, #20]
	ldr	w1, [x20, #12]
	bl	_mdiobus_scan
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_5:
Lloh0:
	adrp	x8, _pxa168_eth_adjust_link@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pxa168_eth_adjust_link@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w3, [x20, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_phy_connect_direct
	cbnz	w0, LBB0_2
; %bb.6:
	ldr	w8, [x20, #12]
	str	w8, [sp, #16]
	ldr	x21, [x20]
	str	x21, [sp]
	ldr	w8, [x20, #8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _PHY_BASIC_FEATURES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_BASIC_FEATURES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, ___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_bitmap_copy
Lloh9:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x21, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_8:
	mov	x1, sp
	mov	x0, x19
	bl	_phy_ethtool_set_link_ksettings
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_pxa168_eth_adjust_link,4,2     ; @pxa168_eth_adjust_link
	.comm	_PHY_BASIC_FEATURES,4,2         ; @PHY_BASIC_FEATURES
	.comm	___ETHTOOL_LINK_MODE_MASK_NBITS,4,2 ; @__ETHTOOL_LINK_MODE_MASK_NBITS
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_pxa168_init_phy
.subsections_via_symbols
