	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_begin_auto_negotiation
_gem_begin_auto_negotiation:            ## @gem_begin_auto_negotiation
	.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	%rsi, %rbx
	movq	%rdi, %r13
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %esi
	leaq	-44(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
LBB0_2:
	movq	(%r13), %rax
	movq	_phy_mii_mdio0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_phy_mii_mdio1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
LBB0_4:
	movq	%r13, %rdi
	callq	_found_mii_phy
	xorl	%r14d, %r14d
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	48(%r13), %rax
	movl	(%rax), %ecx
LBB0_6:
	movq	_ADVERTISE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movl	32(%r13), %edx
	cmpl	$1, %edx
	sbbl	%r14d, %r14d
	orl	%edx, %r14d
	andl	%eax, %r14d
	movl	36(%r13), %r12d
	movl	40(%r13), %edi
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	movq	(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_10
## %bb.9:
	movl	$1, %eax
	movl	-44(%rbp), %r14d
	jmp	LBB0_11
LBB0_7:
	movl	8(%r13), %eax
	jmp	LBB0_11
LBB0_10:
	movl	8(%rbx), %r12d
	movl	12(%rbx), %edi
	xorl	%eax, %eax
LBB0_11:
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	andl	%ecx, %r15d
	cmovnel	%eax, %r15d
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_12
## %bb.13:
	movq	_SUPPORTED_1000baseT_Half@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	testl	%ecx, %edx
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovel	%eax, %r12d
	cmpl	%eax, %r12d
	je	LBB0_15
	jmp	LBB0_18
LBB0_12:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	jne	LBB0_18
LBB0_15:
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rdx
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%ecx, %esi
	jne	LBB0_17
## %bb.16:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	movl	%eax, %r12d
LBB0_18:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_21
## %bb.19:
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	testl	%ecx, %edx
	jne	LBB0_21
## %bb.20:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_21:
	movl	%edi, %ebx
	testl	%r12d, %r12d
	jne	LBB0_23
## %bb.22:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_23:
	movl	56(%r13), %edi
	callq	_netif_device_present
	movl	%r15d, 8(%r13)
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:
	leaq	32(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_found_mii_phy
	testl	%r15d, %r15d
	je	LBB0_28
## %bb.26:
	movq	_link_aneg@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_30
## %bb.27:
	movq	48(%r13), %rax
	movq	8(%rax), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	*8(%rax)
	jmp	LBB0_30
LBB0_24:
	movl	%r15d, 44(%r13)
	movl	%r12d, 36(%r13)
	movl	%ebx, 40(%r13)
	jmp	LBB0_32
LBB0_28:
	movq	_link_force_ok@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	48(%r13), %rax
	movq	8(%rax), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	*(%rax)
LBB0_30:
	movl	(%r15), %eax
	movl	%eax, 24(%r13)
LBB0_31:
	movq	$0, 16(%r13)
	addq	$12, %r13
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	leal	(%rcx,%rcx,2), %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_mod_timer
LBB0_32:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_phy_mii_mdio0,8,3              ## @phy_mii_mdio0
	.comm	_phy_mii_mdio1,8,3              ## @phy_mii_mdio1
	.comm	_ADVERTISE_MASK,4,2             ## @ADVERTISE_MASK
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SUPPORTED_1000baseT_Half,4,2   ## @SUPPORTED_1000baseT_Half
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_link_aneg,4,2                  ## @link_aneg
	.comm	_link_force_ok,4,2              ## @link_force_ok
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_gem_begin_auto_negotiation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_begin_auto_negotiation
_gem_begin_auto_negotiation:            ; @gem_begin_auto_negotiation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x1
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w1, [x23, #16]
	add	x0, sp, #12
	bl	_ethtool_convert_link_mode_to_legacy_u32
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _phy_mii_mdio0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _phy_mii_mdio0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _phy_mii_mdio1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _phy_mii_mdio1@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_28
; %bb.3:
	mov	x0, x19
	bl	_found_mii_phy
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
Lloh6:
	adrp	x9, _ADVERTISE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADVERTISE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	x20, x19
	ldr	w10, [x20, #32]!
	and	w9, w9, w8
	cmp	w10, #0
	csinv	w10, w10, wzr, ne
	and	w22, w9, w10
	ldp	w9, w21, [x20, #4]
	cbz	x23, LBB0_9
; %bb.7:
	ldr	x10, [x23]
Lloh9:
	adrp	x11, _AUTONEG_ENABLE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.8:
	mov	w10, #1
	ldr	w22, [sp, #12]
	b	LBB0_11
LBB0_9:
	ldur	w10, [x20, #-24]
	b	LBB0_11
LBB0_10:
	mov	w10, #0
	ldp	w9, w21, [x23, #8]
LBB0_11:
Lloh12:
	adrp	x11, _SUPPORTED_Autoneg@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w11, w8
	csel	w24, wzr, w10, eq
Lloh15:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x10]
Lloh18:
	adrp	x10, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
	cmp	w9, w11
	b.ne	LBB0_13
; %bb.12:
Lloh20:
	adrp	x11, _SUPPORTED_1000baseT_Half@GOTPAGE
Lloh21:
	ldr	x11, [x11, _SUPPORTED_1000baseT_Half@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	ldr	w12, [x10]
	orr	w11, w12, w11
Lloh23:
	adrp	x12, _SPEED_100@GOTPAGE
Lloh24:
	ldr	x12, [x12, _SPEED_100@GOTPAGEOFF]
Lloh25:
	ldr	w12, [x12]
	tst	w11, w8
	csel	w9, w12, w9, eq
	b	LBB0_14
LBB0_13:
Lloh26:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh27:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x11]
LBB0_14:
Lloh29:
	adrp	x13, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh30:
	ldr	x13, [x13, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh31:
	adrp	x11, _SPEED_10@GOTPAGE
Lloh32:
	ldr	x11, [x11, _SPEED_10@GOTPAGEOFF]
	cmp	w9, w12
	b.ne	LBB0_16
; %bb.15:
Lloh33:
	adrp	x9, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	ldr	w14, [x13]
	orr	w9, w14, w9
	ldr	w14, [x11]
	tst	w9, w8
	csel	w9, w14, w12, eq
LBB0_16:
Lloh36:
	adrp	x12, _DUPLEX_FULL@GOTPAGE
Lloh37:
	ldr	x12, [x12, _DUPLEX_FULL@GOTPAGEOFF]
Lloh38:
	ldr	w12, [x12]
	cmp	w21, w12
	b.ne	LBB0_18
; %bb.17:
	ldr	w10, [x10]
	ldr	w12, [x13]
	orr	w10, w12, w10
Lloh39:
	adrp	x12, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh40:
	ldr	x12, [x12, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh41:
	ldr	w12, [x12]
	orr	w10, w10, w12
Lloh42:
	adrp	x12, _DUPLEX_HALF@GOTPAGE
Lloh43:
	ldr	x12, [x12, _DUPLEX_HALF@GOTPAGEOFF]
Lloh44:
	ldr	w12, [x12]
	tst	w10, w8
	csel	w21, w12, w21, eq
LBB0_18:
	ldr	w8, [x11]
	cmp	w9, #0
	csel	w23, w8, w9, eq
	ldr	w0, [x19, #56]
	bl	_netif_device_present
	str	w24, [x19, #8]
	cbz	w0, LBB0_23
; %bb.19:
	mov	x0, x19
	bl	_found_mii_phy
	cbz	w24, LBB0_24
; %bb.20:
	cbz	x0, LBB0_22
; %bb.21:
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x22
	blr	x8
LBB0_22:
Lloh45:
	adrp	x8, _link_aneg@GOTPAGE
Lloh46:
	ldr	x8, [x8, _link_aneg@GOTPAGEOFF]
	b	LBB0_27
LBB0_23:
	stp	w21, w24, [x19, #40]
	str	w23, [x19, #36]
	b	LBB0_29
LBB0_24:
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	blr	x8
LBB0_26:
Lloh47:
	adrp	x8, _link_force_ok@GOTPAGE
Lloh48:
	ldr	x8, [x8, _link_force_ok@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_28:
	str	xzr, [x19, #16]
	add	x0, x19, #12
Lloh49:
	adrp	x8, _jiffies@GOTPAGE
Lloh50:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
Lloh52:
	adrp	x9, _HZ@GOTPAGE
Lloh53:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	add	w9, w9, w9, lsl #1
	lsl	w9, w9, #2
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	bl	_mod_timer
LBB0_29:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_phy_mii_mdio0,8,3              ; @phy_mii_mdio0
	.comm	_phy_mii_mdio1,8,3              ; @phy_mii_mdio1
	.comm	_ADVERTISE_MASK,4,2             ; @ADVERTISE_MASK
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SUPPORTED_1000baseT_Half,4,2   ; @SUPPORTED_1000baseT_Half
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_link_aneg,4,2                  ; @link_aneg
	.comm	_link_force_ok,4,2              ; @link_force_ok
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_gem_begin_auto_negotiation
.subsections_via_symbols
