	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axienet_mac_config
_axienet_mac_config:                    ## @axienet_mac_config
	.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	%rdx, %r14
	movl	(%rdi), %edi
	callq	_to_net_dev
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_XAE_EMMC_OFFSET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_axienet_ior
	movq	_XAE_EMMC_LINKSPEED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r14), %eax
	cmpl	$130, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	_XAE_EMMC_LINKSPD_1000@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_XAE_EMMC_LINKSPD_10@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_XAE_EMMC_LINKSPD_100@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_7:
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_axienet_iow
	movq	_XAE_FCC_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_axienet_ior
	movl	4(%r14), %ecx
	movq	_MLO_PAUSE_TX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	movq	_XAE_FCC_FCTX_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %edi
	orl	%eax, %edi
	notl	%esi
	andl	%eax, %esi
	testl	%edx, %edx
	cmovnel	%edi, %esi
	movq	_MLO_PAUSE_RX@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movq	_XAE_FCC_FCRX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	orl	%esi, %eax
	notl	%edx
	andl	%esi, %edx
	testl	%ecx, %ecx
	cmovnel	%eax, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_axienet_iow                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XAE_EMMC_OFFSET,4,2            ## @XAE_EMMC_OFFSET
	.comm	_XAE_EMMC_LINKSPEED_MASK,4,2    ## @XAE_EMMC_LINKSPEED_MASK
	.comm	_XAE_EMMC_LINKSPD_1000,4,2      ## @XAE_EMMC_LINKSPD_1000
	.comm	_XAE_EMMC_LINKSPD_100,4,2       ## @XAE_EMMC_LINKSPD_100
	.comm	_XAE_EMMC_LINKSPD_10,4,2        ## @XAE_EMMC_LINKSPD_10
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Speed other than 10, 100 or 1Gbps is not supported\n"

	.comm	_XAE_FCC_OFFSET,4,2             ## @XAE_FCC_OFFSET
	.comm	_MLO_PAUSE_TX,4,2               ## @MLO_PAUSE_TX
	.comm	_XAE_FCC_FCTX_MASK,4,2          ## @XAE_FCC_FCTX_MASK
	.comm	_MLO_PAUSE_RX,4,2               ## @MLO_PAUSE_RX
	.comm	_XAE_FCC_FCRX_MASK,4,2          ## @XAE_FCC_FCRX_MASK
	.no_dead_strip	_axienet_mac_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axienet_mac_config
_axienet_mac_config:                    ; @axienet_mac_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	ldr	w0, [x0]
	bl	_to_net_dev
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x23, _XAE_EMMC_OFFSET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XAE_EMMC_OFFSET@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_axienet_ior
Lloh2:
	adrp	x8, _XAE_EMMC_LINKSPEED_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XAE_EMMC_LINKSPEED_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w21, w0, w8
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _XAE_EMMC_LINKSPD_1000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XAE_EMMC_LINKSPD_1000@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _XAE_EMMC_LINKSPD_10@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XAE_EMMC_LINKSPD_10@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _XAE_EMMC_LINKSPD_100@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XAE_EMMC_LINKSPD_100@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w21, w8, w21
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_8:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_axienet_iow
Lloh13:
	adrp	x21, _XAE_FCC_OFFSET@GOTPAGE
Lloh14:
	ldr	x21, [x21, _XAE_FCC_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_axienet_ior
	ldr	w8, [x20, #4]
Lloh15:
	adrp	x9, _MLO_PAUSE_TX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MLO_PAUSE_TX@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _XAE_FCC_FCTX_MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _XAE_FCC_FCTX_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w11, w10, w0
	bic	w10, w0, w10
	tst	w9, w8
	csel	w9, w10, w11, eq
Lloh21:
	adrp	x10, _MLO_PAUSE_RX@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MLO_PAUSE_RX@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	adrp	x11, _XAE_FCC_FCRX_MASK@GOTPAGE
Lloh25:
	ldr	x11, [x11, _XAE_FCC_FCRX_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	orr	w12, w11, w9
	bic	w9, w9, w11
	tst	w10, w8
	csel	w2, w9, w12, eq
	ldr	w1, [x21]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_axienet_iow
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_XAE_EMMC_OFFSET,4,2            ; @XAE_EMMC_OFFSET
	.comm	_XAE_EMMC_LINKSPEED_MASK,4,2    ; @XAE_EMMC_LINKSPEED_MASK
	.comm	_XAE_EMMC_LINKSPD_1000,4,2      ; @XAE_EMMC_LINKSPD_1000
	.comm	_XAE_EMMC_LINKSPD_100,4,2       ; @XAE_EMMC_LINKSPD_100
	.comm	_XAE_EMMC_LINKSPD_10,4,2        ; @XAE_EMMC_LINKSPD_10
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Speed other than 10, 100 or 1Gbps is not supported\n"

	.comm	_XAE_FCC_OFFSET,4,2             ; @XAE_FCC_OFFSET
	.comm	_MLO_PAUSE_TX,4,2               ; @MLO_PAUSE_TX
	.comm	_XAE_FCC_FCTX_MASK,4,2          ; @XAE_FCC_FCTX_MASK
	.comm	_MLO_PAUSE_RX,4,2               ; @MLO_PAUSE_RX
	.comm	_XAE_FCC_FCRX_MASK,4,2          ; @XAE_FCC_FCRX_MASK
	.no_dead_strip	_axienet_mac_config
.subsections_via_symbols
