	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_mdio_link_not_up
_gem_mdio_link_not_up:                  ## @gem_mdio_link_not_up
	.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
	movl	(%rdi), %ecx
	xorl	%eax, %eax
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.1:
	cmpl	$130, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_9
## %bb.3:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_info
	leaq	16(%rbx), %rdi
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	32(%rbx), %esi
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	callq	*(%rax)
	movl	$5, 4(%rbx)
	movq	_link_force_ok@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_8
LBB0_6:
	movl	24(%rbx), %ecx
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.7:
	leaq	16(%rbx), %rdi
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	callq	*(%rax)
	movl	$5, 4(%rbx)
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_info
	jmp	LBB0_8
LBB0_4:
	movq	16(%rbx), %rcx
	movl	$1, %eax
	cmpl	$0, 8(%rcx)
	jne	LBB0_9
## %bb.5:
	leaq	16(%rbx), %r14
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_info
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	callq	*(%rax)
	movabsq	$21474836608, %rax              ## imm = 0x500000080
	movq	%rax, (%rbx)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Autoneg failed again, keeping forced mode\n"

	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_link_force_ok,4,2              ## @link_force_ok
L_.str.1:                               ## @.str.1
	.asciz	"switching to forced 100bt\n"

	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_10,4,2                   ## @SPEED_10
L_.str.2:                               ## @.str.2
	.asciz	"switching to forced 10bt\n"

	.no_dead_strip	_gem_mdio_link_not_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function gem_mdio_link_not_up
lCPI0_0:
	.long	128                             ; 0x80
	.long	5                               ; 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_gem_mdio_link_not_up:                  ; @gem_mdio_link_not_up
	.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
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _link@GOTPAGE
Lloh1:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	mov	x0, x19
	ldr	x8, [x0, #16]!
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x19, #32]
Lloh5:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	blr	x8
	mov	w0, #0
	mov	w8, #5
Lloh8:
	adrp	x9, _link_force_ok@GOTPAGE
Lloh9:
	ldr	x9, [x9, _link_force_ok@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_10
LBB0_4:
	ldr	w8, [x19, #24]
Lloh11:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x19
	ldr	x8, [x0, #16]!
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
Lloh17:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x9]
	blr	x8
	mov	w8, #5
	str	w8, [x19, #4]
Lloh20:
	adrp	x8, _link@GOTPAGE
Lloh21:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh23:
	adrp	x3, l_.str.2@PAGE
Lloh24:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_info
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	mov	x20, x19
	ldr	x8, [x20, #16]!
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_9
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
Lloh25:
	adrp	x8, _link@GOTPAGE
Lloh26:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh28:
	adrp	x3, l_.str.1@PAGE
Lloh29:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x9]
Lloh33:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh34:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x9]
	mov	x0, x20
	blr	x8
	mov	w0, #0
Lloh36:
	adrp	x8, lCPI0_0@PAGE
Lloh37:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdr	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Autoneg failed again, keeping forced mode\n"

	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_link_force_ok,4,2              ; @link_force_ok
l_.str.1:                               ; @.str.1
	.asciz	"switching to forced 100bt\n"

	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_10,4,2                   ; @SPEED_10
l_.str.2:                               ; @.str.2
	.asciz	"switching to forced 10bt\n"

	.no_dead_strip	_gem_mdio_link_not_up
.subsections_via_symbols
