	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encx24j600_check_link_status
_encx24j600_check_link_status:          ## @encx24j600_check_link_status
	.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	16(%rdi), %r14
	movq	_ESTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_encx24j600_read_reg
	movq	_PHYLNK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_encx24j600_wait_for_autoneg
LBB0_3:
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_info                     ## TAILCALL
LBB0_4:
	movq	_ifdown@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_netif_info
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	$1, 8(%rbx)
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_carrier_off              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ESTAT,4,2                      ## @ESTAT
	.comm	_PHYLNK,4,2                     ## @PHYLNK
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link up\n"

	.comm	_ifdown,4,2                     ## @ifdown
L_.str.1:                               ## @.str.1
	.asciz	"link down\n"

	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.no_dead_strip	_encx24j600_check_link_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encx24j600_check_link_status
_encx24j600_check_link_status:          ; @encx24j600_check_link_status
	.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	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _ESTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESTAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_encx24j600_read_reg
Lloh3:
	adrp	x8, _PHYLNK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHYLNK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_encx24j600_wait_for_autoneg
LBB0_3:
	mov	x0, x19
	bl	_netif_carrier_on
Lloh9:
	adrp	x8, _ifup@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netif_info
LBB0_4:
Lloh14:
	adrp	x8, _ifdown@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ifdown@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_info
Lloh19:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	w8, #1
Lloh22:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netif_carrier_off
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ESTAT,4,2                      ; @ESTAT
	.comm	_PHYLNK,4,2                     ; @PHYLNK
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link up\n"

	.comm	_ifdown,4,2                     ; @ifdown
l_.str.1:                               ; @.str.1
	.asciz	"link down\n"

	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.no_dead_strip	_encx24j600_check_link_status
.subsections_via_symbols
