	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encx24j600_wait_for_autoneg
_encx24j600_wait_for_autoneg:           ## @encx24j600_wait_for_autoneg
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	_PHSTAT1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_encx24j600_read_phy
	movq	_ANDONE@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_7
## %bb.1:
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_encx24j600_read_phy
	testl	%eax, (%r14)
	je	LBB0_2
LBB0_7:
	movq	_ESTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_encx24j600_read_reg
	movq	_PHYDPX@GOTPCREL(%rip), %rcx
	movq	_MACON2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_FULDPX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_encx24j600_set_bits
	movq	_MABBIPG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$21, %edx
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_encx24j600_clr_bits
	movq	_MABBIPG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$18, %edx
	callq	_encx24j600_write_reg
	movq	_MACLCON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$14095, %edx                    ## imm = 0x370F
LBB0_10:
	callq	_encx24j600_write_reg
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_drv@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_netif_notice
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_PHSTAT3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_encx24j600_read_phy
	movq	_PHY3SPD100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_SPEED_100@GOTPCREL(%rip), %r13
	movq	%r13, %rcx
	andl	%eax, %edx
	jne	LBB0_5
## %bb.4:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%rcx), %rcx
	movq	%rcx, (%r12)
	movq	_PHY3DPX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 8(%r12)
	movq	%r12, %rdi
	callq	_encx24j600_update_phcon1
	movl	(%r14), %esi
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	cmpl	$0, 8(%r12)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_netif_notice
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_PHSTAT1,4,2                    ## @PHSTAT1
	.comm	_ANDONE,4,2                     ## @ANDONE
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout waiting for autoneg done\n"

	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_PHSTAT3,4,2                    ## @PHSTAT3
	.comm	_PHY3SPD100,4,2                 ## @PHY3SPD100
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_PHY3DPX,4,2                    ## @PHY3DPX
L_.str.1:                               ## @.str.1
	.asciz	"Using parallel detection: %s/%s"

L_.str.2:                               ## @.str.2
	.asciz	"100"

L_.str.3:                               ## @.str.3
	.asciz	"10"

L_.str.4:                               ## @.str.4
	.asciz	"Full"

L_.str.5:                               ## @.str.5
	.asciz	"Half"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ESTAT,4,2                      ## @ESTAT
	.comm	_PHYDPX,4,2                     ## @PHYDPX
	.comm	_MACON2,4,2                     ## @MACON2
	.comm	_FULDPX,4,2                     ## @FULDPX
	.comm	_MABBIPG,4,2                    ## @MABBIPG
	.comm	_MACLCON,4,2                    ## @MACLCON
	.no_dead_strip	_encx24j600_wait_for_autoneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encx24j600_wait_for_autoneg
_encx24j600_wait_for_autoneg:           ; @encx24j600_wait_for_autoneg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x25, [x22]
	mov	w0, #2000
	bl	_msecs_to_jiffies
	mov	x21, x0
Lloh2:
	adrp	x23, _PHSTAT1@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PHSTAT1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_encx24j600_read_phy
Lloh4:
	adrp	x24, _ANDONE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ANDONE@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.1:
	add	x21, x21, x25
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cpu_relax
	ldr	w1, [x23]
	mov	x0, x19
	bl	_encx24j600_read_phy
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_4:
Lloh6:
	adrp	x8, _ESTAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ESTAT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_encx24j600_read_reg
Lloh9:
	adrp	x8, _PHYDPX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHYDPX@GOTPAGEOFF]
Lloh11:
	adrp	x9, _MACON2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MACON2@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w1, [x9]
Lloh15:
	adrp	x9, _FULDPX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FULDPX@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x9]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_encx24j600_set_bits
Lloh18:
	adrp	x8, _MABBIPG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MABBIPG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #21
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_encx24j600_clr_bits
Lloh21:
	adrp	x8, _MABBIPG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MABBIPG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #18
	bl	_encx24j600_write_reg
Lloh24:
	adrp	x8, _MACLCON@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MACLCON@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #14095
LBB0_7:
	bl	_encx24j600_write_reg
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh27:
	adrp	x21, _drv@GOTPAGE
Lloh28:
	ldr	x21, [x21, _drv@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh29:
	adrp	x3, l_.str@PAGE
Lloh30:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_notice
Lloh31:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh34:
	adrp	x8, _PHSTAT3@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PHSTAT3@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_encx24j600_read_phy
Lloh37:
	adrp	x8, _PHY3SPD100@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PHY3SPD100@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x22, _SPEED_100@GOTPAGE
Lloh41:
	ldr	x22, [x22, _SPEED_100@GOTPAGEOFF]
Lloh42:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh43:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x22, eq
	ldr	x8, [x8]
	str	x8, [x19]
Lloh44:
	adrp	x8, _PHY3DPX@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PHY3DPX@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_encx24j600_update_phcon1
	ldr	w1, [x21]
	ldr	x8, [x19]
Lloh47:
	adrp	x9, l_.str.3@PAGE
Lloh48:
	add	x9, x9, l_.str.3@PAGEOFF
	ldr	x10, [x22]
Lloh49:
	adrp	x11, l_.str.2@PAGE
Lloh50:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	x8, x10
	csel	x8, x11, x9, eq
	ldr	w9, [x19, #8]
Lloh51:
	adrp	x10, l_.str.4@PAGE
Lloh52:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh53:
	adrp	x11, l_.str.5@PAGE
Lloh54:
	add	x11, x11, l_.str.5@PAGEOFF
	cmp	w9, #0
	csel	x9, x11, x10, eq
	stp	x8, x9, [sp]
Lloh55:
	adrp	x3, l_.str.1@PAGE
Lloh56:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_notice
Lloh57:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_PHSTAT1,4,2                    ; @PHSTAT1
	.comm	_ANDONE,4,2                     ; @ANDONE
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout waiting for autoneg done\n"

	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_PHSTAT3,4,2                    ; @PHSTAT3
	.comm	_PHY3SPD100,4,2                 ; @PHY3SPD100
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_PHY3DPX,4,2                    ; @PHY3DPX
l_.str.1:                               ; @.str.1
	.asciz	"Using parallel detection: %s/%s"

l_.str.2:                               ; @.str.2
	.asciz	"100"

l_.str.3:                               ; @.str.3
	.asciz	"10"

l_.str.4:                               ; @.str.4
	.asciz	"Full"

l_.str.5:                               ; @.str.5
	.asciz	"Half"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ESTAT,4,2                      ; @ESTAT
	.comm	_PHYDPX,4,2                     ; @PHYDPX
	.comm	_MACON2,4,2                     ; @MACON2
	.comm	_FULDPX,4,2                     ; @FULDPX
	.comm	_MABBIPG,4,2                    ; @MABBIPG
	.comm	_MACLCON,4,2                    ; @MACLCON
	.no_dead_strip	_encx24j600_wait_for_autoneg
.subsections_via_symbols
