	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function atl1e_sw_init
LCPI0_0:
	.long	50000                           ## 0xc350
	.long	200000                          ## 0x30d40
	.long	5                               ## 0x5
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_atl1e_sw_init:                         ## @atl1e_sw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	56(%rdi), %r14
	movq	48(%rdi), %rdi
	movq	$0, 40(%rbx)
	movq	_SPEED_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	$1, (%rbx)
	movups	4(%rdi), %xmm0
	movups	%xmm0, 164(%rbx)
	movl	(%rdi), %eax
	movl	%eax, 56(%rbx)
	movq	_PCI_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	160(%rbx), %rdx
	callq	_pci_read_config_word
	movq	_REG_PHY_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_AT_READ_REG
	movl	56(%rbx), %ecx
	movq	_PHY_STATUS_100M@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_athr_l2e_revA@GOTPCREL(%rip), %rax
	cmpl	$240, %ecx
	jge	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_athr_l1e@GOTPCREL(%rip), %rax
	cmpl	$240, %ecx
	jl	LBB0_5
LBB0_4:
	movq	_athr_l2e_revB@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 156(%rbx)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_AT_READ_REG
	movq	_PHY_STATUS_EMI_CA@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 60(%rbx)
	movabsq	$30064771072, %rax              ## imm = 0x700000000
	movq	%rax, 64(%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rdx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	addl	(%rcx), %eax
	addl	(%rdx), %eax
	addl	%esi, %eax
	addl	$7, %eax
	sarl	$3, %eax
	movl	%eax, 76(%rbx)
	movq	_atl1e_rrs_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 152(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 136(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [50000,200000,5,1]
	movups	%xmm0, 80(%rbx)
	movl	24(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 96(%rbx)
	movl	$4, 100(%rbx)
	movl	108(%rbx), %eax
	shll	$2, %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	movl	%eax, 104(%rbx)
	movq	_atl1e_dma_req_1024@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 128(%rbx)
	movq	%rax, 120(%rbx)
	movabsq	$17179869199, %rax              ## imm = 0x40000000F
	movq	%rax, 112(%rbx)
	movq	%rbx, %rdi
	callq	_atl1e_alloc_queues
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	leaq	12(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	movq	___AT_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_0,4,2                    ## @SPEED_0
	.comm	_FULL_DUPLEX,4,2                ## @FULL_DUPLEX
	.comm	_PCI_COMMAND,4,2                ## @PCI_COMMAND
	.comm	_REG_PHY_STATUS,4,2             ## @REG_PHY_STATUS
	.comm	_athr_l2e_revB,4,2              ## @athr_l2e_revB
	.comm	_PHY_STATUS_100M,4,2            ## @PHY_STATUS_100M
	.comm	_athr_l1e,4,2                   ## @athr_l1e
	.comm	_athr_l2e_revA,4,2              ## @athr_l2e_revA
	.comm	_PHY_STATUS_EMI_CA,4,2          ## @PHY_STATUS_EMI_CA
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_atl1e_rrs_disable,4,2          ## @atl1e_rrs_disable
	.comm	_atl1e_dma_req_1024,8,3         ## @atl1e_dma_req_1024
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for queues\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	___AT_DOWN,4,2                  ## @__AT_DOWN
	.no_dead_strip	_atl1e_sw_init
.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 atl1e_sw_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	7                               ; 0x7
lCPI0_2:
	.long	15                              ; 0xf
	.long	4                               ; 0x4
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	50000                           ; 0xc350
	.long	200000                          ; 0x30d40
	.long	5                               ; 0x5
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_atl1e_sw_init:                         ; @atl1e_sw_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x0, [x0, #48]
	str	xzr, [x19, #40]
Lloh0:
	adrp	x8, _SPEED_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FULL_DUPLEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FULL_DUPLEX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
	mov	w8, #1
	str	w8, [x19]
	ldur	q0, [x0, #4]
	stur	q0, [x19, #164]
	ldr	w8, [x0]
	mov	x20, x19
	str	w8, [x20, #56]!
Lloh6:
	adrp	x8, _PCI_COMMAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_COMMAND@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, x19, #160
	bl	_pci_read_config_word
Lloh9:
	adrp	x21, _REG_PHY_STATUS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _REG_PHY_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_AT_READ_REG
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _PHY_STATUS_100M@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PHY_STATUS_100M@GOTPAGEOFF]
Lloh13:
	adrp	x10, _athr_l2e_revB@GOTPAGE
Lloh14:
	ldr	x10, [x10, _athr_l2e_revB@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x11, _athr_l2e_revA@GOTPAGE
Lloh17:
	ldr	x11, [x11, _athr_l2e_revA@GOTPAGEOFF]
Lloh18:
	adrp	x12, _athr_l1e@GOTPAGE
Lloh19:
	ldr	x12, [x12, _athr_l1e@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x11, x12, eq
	cmp	w8, #239
	csel	x8, x10, x9, gt
	ldr	w8, [x8]
	str	w8, [x19, #156]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_AT_READ_REG
Lloh20:
	adrp	x8, _PHY_STATUS_EMI_CA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PHY_STATUS_EMI_CA@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x19, #60]
Lloh23:
	adrp	x8, lCPI0_0@PAGE
Lloh24:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #64]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _VLAN_HLEN@GOTPAGE
Lloh29:
	ldr	x10, [x10, _VLAN_HLEN@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
Lloh31:
	adrp	x11, _ETH_FCS_LEN@GOTPAGE
Lloh32:
	ldr	x11, [x11, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
	add	w9, w8, w9
	add	w9, w9, w10
	add	w9, w9, w11
	add	w9, w9, #7
	asr	w9, w9, #3
	stp	w8, w9, [x19, #72]
Lloh34:
	adrp	x8, _atl1e_rrs_disable@GOTPAGE
Lloh35:
	ldr	x8, [x8, _atl1e_rrs_disable@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x19, #152]
	stp	xzr, xzr, [x19, #136]
Lloh37:
	adrp	x8, lCPI0_1@PAGE
Lloh38:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [x19, #80]
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	mov	w9, #4
	stp	w8, w9, [x19, #96]
	ldr	w8, [x19, #108]
	lsl	w8, w8, #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	str	w8, [x19, #104]
Lloh39:
	adrp	x8, _atl1e_dma_req_1024@GOTPAGE
Lloh40:
	ldr	x8, [x8, _atl1e_dma_req_1024@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #120]
Lloh42:
	adrp	x8, lCPI0_2@PAGE
Lloh43:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	str	d0, [x19, #112]
	mov	x0, x19
	bl	_atl1e_alloc_queues
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
Lloh44:
	adrp	x1, l_.str@PAGE
Lloh45:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh46:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	add	x0, x19, #12
	mov	w1, #1
	bl	_atomic_set
	add	x0, x19, #8
	bl	_spin_lock_init
Lloh49:
	adrp	x8, ___AT_DOWN@GOTPAGE
Lloh50:
	ldr	x8, [x8, ___AT_DOWN@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdr	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_0,4,2                    ; @SPEED_0
	.comm	_FULL_DUPLEX,4,2                ; @FULL_DUPLEX
	.comm	_PCI_COMMAND,4,2                ; @PCI_COMMAND
	.comm	_REG_PHY_STATUS,4,2             ; @REG_PHY_STATUS
	.comm	_athr_l2e_revB,4,2              ; @athr_l2e_revB
	.comm	_PHY_STATUS_100M,4,2            ; @PHY_STATUS_100M
	.comm	_athr_l1e,4,2                   ; @athr_l1e
	.comm	_athr_l2e_revA,4,2              ; @athr_l2e_revA
	.comm	_PHY_STATUS_EMI_CA,4,2          ; @PHY_STATUS_EMI_CA
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_atl1e_rrs_disable,4,2          ; @atl1e_rrs_disable
	.comm	_atl1e_dma_req_1024,8,3         ; @atl1e_dma_req_1024
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for queues\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	___AT_DOWN,4,2                  ; @__AT_DOWN
	.no_dead_strip	_atl1e_sw_init
.subsections_via_symbols
