	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alx_start_mac                  ## -- Begin function alx_start_mac
	.p2align	4, 0x90
_alx_start_mac:                         ## @alx_start_mac
	.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, %r14
	movq	_ALX_RXQ0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_alx_read_mem32
	movl	(%rbx), %esi
	movq	_ALX_RXQ0_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_alx_write_mem32
	movq	_ALX_TXQ0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_alx_read_mem32
	movl	(%rbx), %esi
	movq	_ALX_TXQ0_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_alx_write_mem32
	movl	(%r14), %eax
	movq	8(%r14), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	movq	_ALX_MAC_CTRL_FULLD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	movl	%ebx, %esi
	orl	%eax, %esi
	notl	%ebx
	andl	%eax, %ebx
	cmpq	(%rdx), %rcx
	cmovel	%esi, %ebx
	movq	_ALX_MAC_CTRL_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_ALX_MAC_CTRL_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ALX_MAC_CTRL_SPEED_10_100@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_ALX_SET_FIELD
	movq	_ALX_MAC_CTRL_TX_EN@GOTPCREL(%rip), %rax
	movq	_ALX_MAC_CTRL_RX_EN@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movl	%ebx, (%r14)
	movq	_ALX_MAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_alx_write_mem32                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ALX_RXQ0,4,2                   ## @ALX_RXQ0
	.comm	_ALX_RXQ0_EN,4,2                ## @ALX_RXQ0_EN
	.comm	_ALX_TXQ0,4,2                   ## @ALX_TXQ0
	.comm	_ALX_TXQ0_EN,4,2                ## @ALX_TXQ0_EN
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_ALX_MAC_CTRL_FULLD,4,2         ## @ALX_MAC_CTRL_FULLD
	.comm	_ALX_MAC_CTRL_SPEED,4,2         ## @ALX_MAC_CTRL_SPEED
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_ALX_MAC_CTRL_SPEED_1000,4,2    ## @ALX_MAC_CTRL_SPEED_1000
	.comm	_ALX_MAC_CTRL_SPEED_10_100,4,2  ## @ALX_MAC_CTRL_SPEED_10_100
	.comm	_ALX_MAC_CTRL_TX_EN,4,2         ## @ALX_MAC_CTRL_TX_EN
	.comm	_ALX_MAC_CTRL_RX_EN,4,2         ## @ALX_MAC_CTRL_RX_EN
	.comm	_ALX_MAC_CTRL,4,2               ## @ALX_MAC_CTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alx_start_mac                  ; -- Begin function alx_start_mac
	.p2align	2
_alx_start_mac:                         ; @alx_start_mac
	.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
Lloh0:
	adrp	x20, _ALX_RXQ0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ALX_RXQ0@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_alx_read_mem32
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _ALX_RXQ0_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ALX_RXQ0_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_alx_write_mem32
Lloh5:
	adrp	x20, _ALX_TXQ0@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ALX_TXQ0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_alx_read_mem32
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _ALX_TXQ0_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ALX_TXQ0_EN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_alx_write_mem32
Lloh10:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x10, _ALX_MAC_CTRL_FULLD@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ALX_MAC_CTRL_FULLD@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w11, w10, w9
	bic	w9, w9, w10
	ldp	x10, x12, [x19, #8]
	cmp	x10, x8
Lloh16:
	adrp	x8, _ALX_MAC_CTRL_SPEED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ALX_MAC_CTRL_SPEED@GOTPAGEOFF]
	csel	w20, w11, w9, eq
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh21:
	adrp	x9, _ALX_MAC_CTRL_SPEED_1000@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ALX_MAC_CTRL_SPEED_1000@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x10, _ALX_MAC_CTRL_SPEED_10_100@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ALX_MAC_CTRL_SPEED_10_100@GOTPAGEOFF]
	cmp	x12, x8
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ALX_SET_FIELD
Lloh26:
	adrp	x8, _ALX_MAC_CTRL_TX_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ALX_MAC_CTRL_TX_EN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _ALX_MAC_CTRL_RX_EN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ALX_MAC_CTRL_RX_EN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w2, w8, w9
	str	w2, [x19]
Lloh32:
	adrp	x8, _ALX_MAC_CTRL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ALX_MAC_CTRL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_alx_write_mem32
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ALX_RXQ0,4,2                   ; @ALX_RXQ0
	.comm	_ALX_RXQ0_EN,4,2                ; @ALX_RXQ0_EN
	.comm	_ALX_TXQ0,4,2                   ; @ALX_TXQ0
	.comm	_ALX_TXQ0_EN,4,2                ; @ALX_TXQ0_EN
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_ALX_MAC_CTRL_FULLD,4,2         ; @ALX_MAC_CTRL_FULLD
	.comm	_ALX_MAC_CTRL_SPEED,4,2         ; @ALX_MAC_CTRL_SPEED
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_ALX_MAC_CTRL_SPEED_1000,4,2    ; @ALX_MAC_CTRL_SPEED_1000
	.comm	_ALX_MAC_CTRL_SPEED_10_100,4,2  ; @ALX_MAC_CTRL_SPEED_10_100
	.comm	_ALX_MAC_CTRL_TX_EN,4,2         ; @ALX_MAC_CTRL_TX_EN
	.comm	_ALX_MAC_CTRL_RX_EN,4,2         ; @ALX_MAC_CTRL_RX_EN
	.comm	_ALX_MAC_CTRL,4,2               ; @ALX_MAC_CTRL
.subsections_via_symbols
