	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encx24j600_update_phcon1
_encx24j600_update_phcon1:              ## @encx24j600_update_phcon1
	.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
	movq	%rdi, %rbx
	movq	_PHCON1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_encx24j600_read_phy
	movq	(%rbx), %rcx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rsi
	movq	_ANEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	(%rsi), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_RENEG@GOTPCREL(%rip), %rcx
	orl	%eax, %edx
	orl	(%rcx), %edx
	jmp	LBB0_5
LBB0_2:
	notl	%edx
	andl	%edx, %eax
	movq	8(%rbx), %rdx
	movq	_SPEED_100@GOTPCREL(%rip), %rsi
	movq	_SPD100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edi
	orl	%eax, %edi
	notl	%ecx
	andl	%eax, %ecx
	cmpq	(%rsi), %rdx
	cmovel	%edi, %ecx
	cmpq	$0, 16(%rbx)
	movq	_PFULDPX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	je	LBB0_4
## %bb.3:
	orl	%ecx, %edx
	jmp	LBB0_5
LBB0_4:
	notl	%edx
	andl	%ecx, %edx
LBB0_5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_encx24j600_write_phy           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHCON1,4,2                     ## @PHCON1
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ANEN,4,2                       ## @ANEN
	.comm	_RENEG,4,2                      ## @RENEG
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPD100,4,2                     ## @SPD100
	.comm	_PFULDPX,4,2                    ## @PFULDPX
	.no_dead_strip	_encx24j600_update_phcon1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encx24j600_update_phcon1
_encx24j600_update_phcon1:              ; @encx24j600_update_phcon1
	.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
Lloh0:
	adrp	x20, _PHCON1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PHCON1@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_encx24j600_read_phy
Lloh2:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh4:
	ldr	x10, [x8]
Lloh5:
	adrp	x8, _ANEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ANEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x9, _RENEG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RENEG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _SPD100@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SPD100@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w11, w10, w8
	bic	w8, w8, w10
	ldp	x10, x12, [x19, #8]
	cmp	x10, x9
Lloh17:
	adrp	x9, _PFULDPX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PFULDPX@GOTPAGEOFF]
	csel	w8, w11, w8, eq
Lloh19:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	x12, #0
	csel	w2, w10, w8, eq
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_encx24j600_write_phy
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PHCON1,4,2                     ; @PHCON1
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ANEN,4,2                       ; @ANEN
	.comm	_RENEG,4,2                      ; @RENEG
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPD100,4,2                     ; @SPD100
	.comm	_PFULDPX,4,2                    ; @PFULDPX
	.no_dead_strip	_encx24j600_update_phcon1
.subsections_via_symbols
