	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa168_eth_adjust_link
_pxa168_eth_adjust_link:                ## @pxa168_eth_adjust_link
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rbx), %r15
	movq	_PORT_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rdl
	movl	%eax, %r12d
	movq	_PORT_CONFIG_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rdl
	movq	_PCR_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %r9d
	notl	%r9d
	andl	%r12d, %r9d
	movq	_PCXR_SPEED_100@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	_PCXR_FLOWCTL_DIS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	movl	%r8d, %edi
	orl	%esi, %edi
	movq	_PCXR_RMII_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r13d
	orl	%r13d, %edi
	notl	%edi
	andl	%eax, %edi
	movq	_PHY_INTERFACE_MODE_RMII@GOTPCREL(%rip), %r10
	movq	(%r15), %r11
	xorl	%ebx, %ebx
	cmpq	(%r10), %r11
	cmovnel	%ebx, %r13d
	movq	8(%r15), %r10
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r10
	cmovnel	%ebx, %esi
	orl	%r13d, %esi
	orl	%r12d, %edx
	cmpq	$0, 24(%r15)
	cmovel	%r9d, %edx
	cmpl	$0, 16(%r15)
	cmovel	%r8d, %ebx
	orl	%esi, %ebx
	orl	%edi, %ebx
	cmpl	%r12d, %edx
	jne	LBB0_3
## %bb.1:
	cmpl	%eax, %ebx
	jne	LBB0_3
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_PORT_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wrl
	movq	_PORT_CONFIG_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_wrl
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_print_status               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_CONFIG,4,2                ## @PORT_CONFIG
	.comm	_PORT_CONFIG_EXT,4,2            ## @PORT_CONFIG_EXT
	.comm	_PCR_DUPLEX_FULL,4,2            ## @PCR_DUPLEX_FULL
	.comm	_PCXR_SPEED_100,4,2             ## @PCXR_SPEED_100
	.comm	_PCXR_FLOWCTL_DIS,4,2           ## @PCXR_FLOWCTL_DIS
	.comm	_PCXR_RMII_EN,4,2               ## @PCXR_RMII_EN
	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ## @PHY_INTERFACE_MODE_RMII
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.no_dead_strip	_pxa168_eth_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa168_eth_adjust_link
_pxa168_eth_adjust_link:                ; @pxa168_eth_adjust_link
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x19]
Lloh0:
	adrp	x23, _PORT_CONFIG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PORT_CONFIG@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_rdl
	mov	x22, x0
Lloh2:
	adrp	x24, _PORT_CONFIG_EXT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PORT_CONFIG_EXT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_rdl
Lloh4:
	adrp	x8, _PCR_DUPLEX_FULL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PCR_DUPLEX_FULL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w9, w22, w8
Lloh7:
	adrp	x10, _PCXR_SPEED_100@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PCXR_SPEED_100@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
Lloh10:
	adrp	x11, _PCXR_FLOWCTL_DIS@GOTPAGE
Lloh11:
	ldr	x11, [x11, _PCXR_FLOWCTL_DIS@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	orr	w12, w11, w10
Lloh13:
	adrp	x13, _PHY_INTERFACE_MODE_RMII@GOTPAGE
Lloh14:
	ldr	x13, [x13, _PHY_INTERFACE_MODE_RMII@GOTPAGEOFF]
Lloh15:
	ldr	x13, [x13]
	ldp	x14, x15, [x19]
	cmp	x14, x13
Lloh16:
	adrp	x13, _PCXR_RMII_EN@GOTPAGE
Lloh17:
	ldr	x13, [x13, _PCXR_RMII_EN@GOTPAGEOFF]
Lloh18:
	ldr	w13, [x13]
	orr	w12, w12, w13
	bic	w12, w0, w12
	csel	w13, w13, wzr, eq
	orr	w12, w13, w12
Lloh19:
	adrp	x13, _SPEED_100@GOTPAGE
Lloh20:
	ldr	x13, [x13, _SPEED_100@GOTPAGEOFF]
Lloh21:
	ldr	x13, [x13]
	cmp	x15, x13
	csel	w10, w10, wzr, eq
	orr	w10, w12, w10
	ldr	x12, [x19, #24]
	orr	w8, w8, w22
	cmp	x12, #0
	csel	w2, w9, w8, eq
	ldr	w8, [x19, #16]
	cmp	w8, #0
	csel	w8, w11, wzr, eq
	orr	w21, w10, w8
	cmp	w2, w22
	ccmp	w21, w0, #0, eq
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_wrl
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_wrl
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_phy_print_status
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_CONFIG,4,2                ; @PORT_CONFIG
	.comm	_PORT_CONFIG_EXT,4,2            ; @PORT_CONFIG_EXT
	.comm	_PCR_DUPLEX_FULL,4,2            ; @PCR_DUPLEX_FULL
	.comm	_PCXR_SPEED_100,4,2             ; @PCXR_SPEED_100
	.comm	_PCXR_FLOWCTL_DIS,4,2           ; @PCXR_FLOWCTL_DIS
	.comm	_PCXR_RMII_EN,4,2               ; @PCXR_RMII_EN
	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ; @PHY_INTERFACE_MODE_RMII
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.no_dead_strip	_pxa168_eth_adjust_link
.subsections_via_symbols
