	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_an37_init
_xgbe_an37_init:                        ## @xgbe_an37_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	callq	*8(%rdi)
	movq	_MDIO_MMD_VEND2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MDIO_VEND2_AN_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XMDIO_READ
	movl	%eax, %ebx
	movq	_Pause@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_XGBE_ADV
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
	andl	$-385, %ebx                     ## imm = 0xFE7F
	shll	$8, %r12d
	orl	%ebx, %r12d
	movq	_Asym_Pause@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_XGBE_ADV
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	_XGBE_AN_CL37_FD_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	shll	$7, %ecx
	orl	%ecx, %r12d
	movq	_XGBE_AN_CL37_HD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	%r12d, %ecx
	movl	(%r13), %esi
	movq	_MDIO_VEND2_AN_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XMDIO_WRITE
	movl	(%r13), %esi
	movq	_MDIO_VEND2_AN_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_XMDIO_READ
	movq	_XGBE_AN_CL37_TX_CONFIG_MASK@GOTPCREL(%rip), %rdx
	movq	_XGBE_AN_CL37_PCS_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.2:
	movq	_XGBE_AN_CL37_PCS_MODE_BASEX@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_XGBE_AN_CL37_PCS_MODE_SGMII@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %ecx
LBB0_5:
	movq	_XGBE_AN_CL37_MII_CTRL_8BIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_XMDIO_WRITE
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	cmpl	$129, (%r15)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_dbg
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_VEND2,4,2             ## @MDIO_MMD_VEND2
	.comm	_MDIO_VEND2_AN_ADVERTISE,4,2    ## @MDIO_VEND2_AN_ADVERTISE
	.comm	_Pause,4,2                      ## @Pause
	.comm	_Asym_Pause,4,2                 ## @Asym_Pause
	.comm	_XGBE_AN_CL37_FD_MASK,4,2       ## @XGBE_AN_CL37_FD_MASK
	.comm	_XGBE_AN_CL37_HD_MASK,4,2       ## @XGBE_AN_CL37_HD_MASK
	.comm	_MDIO_VEND2_AN_CTRL,4,2         ## @MDIO_VEND2_AN_CTRL
	.comm	_XGBE_AN_CL37_TX_CONFIG_MASK,4,2 ## @XGBE_AN_CL37_TX_CONFIG_MASK
	.comm	_XGBE_AN_CL37_PCS_MODE_MASK,4,2 ## @XGBE_AN_CL37_PCS_MODE_MASK
	.comm	_XGBE_AN_CL37_PCS_MODE_BASEX,4,2 ## @XGBE_AN_CL37_PCS_MODE_BASEX
	.comm	_XGBE_AN_CL37_PCS_MODE_SGMII,4,2 ## @XGBE_AN_CL37_PCS_MODE_SGMII
	.comm	_XGBE_AN_CL37_MII_CTRL_8BIT,4,2 ## @XGBE_AN_CL37_MII_CTRL_8BIT
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CL37 AN (%s) initialized\n"

L_.str.1:                               ## @.str.1
	.asciz	"BaseX"

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

	.no_dead_strip	_xgbe_an37_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_an37_init
_xgbe_an37_init:                        ; @xgbe_an37_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x1, sp, #8
	blr	x8
Lloh0:
	adrp	x21, _MDIO_MMD_VEND2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_MMD_VEND2@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _MDIO_VEND2_AN_ADVERTISE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MDIO_VEND2_AN_ADVERTISE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_XMDIO_READ
	mov	x20, x0
Lloh4:
	adrp	x8, _Pause@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Pause@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_XGBE_ADV
	cmp	x0, #0
	cset	w8, ne
	and	w20, w20, #0xfffffe7f
	bfi	w20, w8, #8, #1
Lloh7:
	adrp	x8, _Asym_Pause@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Asym_Pause@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_XGBE_ADV
	cmp	x0, #0
	cset	w8, ne
Lloh10:
	adrp	x9, _XGBE_AN_CL37_FD_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _XGBE_AN_CL37_FD_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w9, w20, w9
	orr	w8, w9, w8, lsl #7
Lloh13:
	adrp	x9, _XGBE_AN_CL37_HD_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XGBE_AN_CL37_HD_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	bic	w3, w8, w9
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_XMDIO_WRITE
	ldr	w1, [x21]
Lloh16:
	adrp	x20, _MDIO_VEND2_AN_CTRL@GOTPAGE
Lloh17:
	ldr	x20, [x20, _MDIO_VEND2_AN_CTRL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_XMDIO_READ
Lloh18:
	adrp	x8, _XGBE_AN_CL37_TX_CONFIG_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XGBE_AN_CL37_TX_CONFIG_MASK@GOTPAGEOFF]
Lloh20:
	adrp	x9, _XGBE_AN_CL37_PCS_MODE_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _XGBE_AN_CL37_PCS_MODE_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldr	w9, [x19]
	cmp	w9, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #129
	b.ne	LBB0_5
; %bb.2:
Lloh24:
	adrp	x9, _XGBE_AN_CL37_PCS_MODE_BASEX@GOTPAGE
Lloh25:
	ldr	x9, [x9, _XGBE_AN_CL37_PCS_MODE_BASEX@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh26:
	adrp	x9, _XGBE_AN_CL37_PCS_MODE_SGMII@GOTPAGE
Lloh27:
	ldr	x9, [x9, _XGBE_AN_CL37_PCS_MODE_SGMII@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_5:
Lloh28:
	adrp	x9, _XGBE_AN_CL37_MII_CTRL_8BIT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _XGBE_AN_CL37_MII_CTRL_8BIT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_XMDIO_WRITE
Lloh31:
	adrp	x8, _link@GOTPAGE
Lloh32:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldp	w8, w2, [x19]
Lloh34:
	adrp	x9, l_.str.2@PAGE
Lloh35:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh36:
	adrp	x10, l_.str.1@PAGE
Lloh37:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #129
	csel	x4, x10, x9, eq
Lloh38:
	adrp	x3, l_.str@PAGE
Lloh39:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_VEND2,4,2             ; @MDIO_MMD_VEND2
	.comm	_MDIO_VEND2_AN_ADVERTISE,4,2    ; @MDIO_VEND2_AN_ADVERTISE
	.comm	_Pause,4,2                      ; @Pause
	.comm	_Asym_Pause,4,2                 ; @Asym_Pause
	.comm	_XGBE_AN_CL37_FD_MASK,4,2       ; @XGBE_AN_CL37_FD_MASK
	.comm	_XGBE_AN_CL37_HD_MASK,4,2       ; @XGBE_AN_CL37_HD_MASK
	.comm	_MDIO_VEND2_AN_CTRL,4,2         ; @MDIO_VEND2_AN_CTRL
	.comm	_XGBE_AN_CL37_TX_CONFIG_MASK,4,2 ; @XGBE_AN_CL37_TX_CONFIG_MASK
	.comm	_XGBE_AN_CL37_PCS_MODE_MASK,4,2 ; @XGBE_AN_CL37_PCS_MODE_MASK
	.comm	_XGBE_AN_CL37_PCS_MODE_BASEX,4,2 ; @XGBE_AN_CL37_PCS_MODE_BASEX
	.comm	_XGBE_AN_CL37_PCS_MODE_SGMII,4,2 ; @XGBE_AN_CL37_PCS_MODE_SGMII
	.comm	_XGBE_AN_CL37_MII_CTRL_8BIT,4,2 ; @XGBE_AN_CL37_MII_CTRL_8BIT
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CL37 AN (%s) initialized\n"

l_.str.1:                               ; @.str.1
	.asciz	"BaseX"

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

	.no_dead_strip	_xgbe_an37_init
.subsections_via_symbols
