	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function atl1c_sw_init
LCPI0_0:
	.long	50000                           ## 0xc350
	.long	200000                          ## 0x30d40
	.long	200                             ## 0xc8
	.long	1000                            ## 0x3e8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_atl1c_sw_init:                         ## @atl1c_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	64(%rdi), %r15
	movq	56(%rdi), %r14
	movq	$0, 48(%rdi)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_device_set_wakeup_enable
	movq	_SPEED_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	32(%rbx), %rax
	movl	$1024, (%rax)                   ## imm = 0x400
	movl	$512, 24(%rbx)                  ## imm = 0x200
	movups	4(%r14), %xmm0
	movups	%xmm0, 144(%rbx)
	movq	_PCI_CLASS_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_dword
	movzbl	-28(%rbp), %eax
	movl	%eax, 64(%rbx)
	movl	$1, 68(%rbx)
	movq	_MEDIA_TYPE_AUTO_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 140(%rbx)
	movq	%r15, %rdi
	callq	_atl1c_setup_mac_funcs
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_atl1c_patch_assign
	movq	_IMR_NORMAL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%rbx)
	movabsq	$30064771072, %rax              ## imm = 0x700000000
	movq	%rax, 72(%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 132(%rbx)
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	movl	$-454761244, 80(%rbx)           ## imm = 0xE4E4E4E4
	movq	$0, 120(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [50000,200000,200,1000]
	movups	%xmm0, 84(%rbx)
	movabsq	$34359738373, %rax              ## imm = 0x800000005
	movq	%rax, 100(%rbx)
	movq	_atl1c_dma_ord_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%rbx)
	movq	_atl1c_dma_req_1024@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	movq	%rbx, %rdi
	callq	_atl1c_alloc_queues
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_atl1c_set_rxbufsize
	leaq	8(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	4(%rbx), %rdi
	callq	_spin_lock_init
	movq	___AT_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	xorl	%eax, %eax
LBB0_5:
	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_CLASS_REVISION,4,2         ## @PCI_CLASS_REVISION
	.comm	_MEDIA_TYPE_AUTO_SENSOR,4,2     ## @MEDIA_TYPE_AUTO_SENSOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set mac function pointers failed\n"

	.comm	_IMR_NORMAL_MASK,4,2            ## @IMR_NORMAL_MASK
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_atl1c_dma_ord_out,4,2          ## @atl1c_dma_ord_out
	.comm	_atl1c_dma_req_1024,4,2         ## @atl1c_dma_req_1024
L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate memory for queues\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	___AT_DOWN,4,2                  ## @__AT_DOWN
	.no_dead_strip	_atl1c_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 atl1c_sw_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	7                               ; 0x7
lCPI0_2:
	.long	5                               ; 0x5
	.long	8                               ; 0x8
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	50000                           ; 0xc350
	.long	200000                          ; 0x30d40
	.long	200                             ; 0xc8
	.long	1000                            ; 0x3e8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_atl1c_sw_init:                         ; @atl1c_sw_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	x20, [x0, #56]
	str	xzr, [x0, #48]
	mov	x0, x20
	mov	w1, #0
	bl	_device_set_wakeup_enable
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, #40]
	ldr	x8, [x19, #32]
	mov	w9, #1024
	str	w9, [x8]
	mov	w8, #512
	str	w8, [x19, #24]
	ldur	q0, [x20, #4]
	str	q0, [x19, #144]
Lloh6:
	adrp	x8, _PCI_CLASS_REVISION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_CLASS_REVISION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_dword
	ldrb	w9, [sp, #12]
	mov	x21, x19
	mov	w8, #1
	stp	w9, w8, [x21, #64]!
Lloh9:
	adrp	x8, _MEDIA_TYPE_AUTO_SENSOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEDIA_TYPE_AUTO_SENSOR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #76]
	mov	x0, x21
	bl	_atl1c_setup_mac_funcs
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_atl1c_patch_assign
Lloh14:
	adrp	x8, _IMR_NORMAL_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IMR_NORMAL_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #136]
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #72]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _ADVERTISED_Autoneg@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #128]
	mov	w8, #58596
	movk	w8, #58596, lsl #16
	str	w8, [x19, #80]
	str	xzr, [x19, #120]
Lloh22:
	adrp	x8, lCPI0_1@PAGE
Lloh23:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	stur	q0, [x19, #84]
Lloh24:
	adrp	x8, lCPI0_2@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	stur	d0, [x19, #100]
Lloh26:
	adrp	x8, _atl1c_dma_ord_out@GOTPAGE
Lloh27:
	ldr	x8, [x8, _atl1c_dma_ord_out@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _atl1c_dma_req_1024@GOTPAGE
Lloh30:
	ldr	x9, [x9, _atl1c_dma_req_1024@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #108]
	mov	x0, x19
	bl	_atl1c_alloc_queues
	cbz	x0, LBB0_4
; %bb.3:
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_atl1c_set_rxbufsize
	add	x0, x19, #8
	mov	w1, #1
	bl	_atomic_set
	add	x0, x19, #4
	bl	_spin_lock_init
Lloh37:
	adrp	x8, ___AT_DOWN@GOTPAGE
Lloh38:
	ldr	x8, [x8, ___AT_DOWN@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	w0, #0
LBB0_5:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdrp	Lloh24, Lloh26
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpAdrp	Lloh22, Lloh24
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_0,4,2                    ; @SPEED_0
	.comm	_FULL_DUPLEX,4,2                ; @FULL_DUPLEX
	.comm	_PCI_CLASS_REVISION,4,2         ; @PCI_CLASS_REVISION
	.comm	_MEDIA_TYPE_AUTO_SENSOR,4,2     ; @MEDIA_TYPE_AUTO_SENSOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set mac function pointers failed\n"

	.comm	_IMR_NORMAL_MASK,4,2            ; @IMR_NORMAL_MASK
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_atl1c_dma_ord_out,4,2          ; @atl1c_dma_ord_out
	.comm	_atl1c_dma_req_1024,4,2         ; @atl1c_dma_req_1024
l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate memory for queues\n"

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