	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function atl2_sw_init
LCPI0_0:
	.long	0                               ## 0x0
	.long	7                               ## 0x7
	.long	96                              ## 0x60
	.long	80                              ## 0x50
LCPI0_1:
	.long	64                              ## 0x40
	.long	96                              ## 0x60
	.long	2                               ## 0x2
	.long	15                              ## 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_atl2_sw_init:                          ## @atl2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	movl	16(%rdi), %eax
	movl	%eax, 132(%rbx)
	movups	(%rdi), %xmm0
	movups	%xmm0, 116(%rbx)
	movq	_PCI_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	112(%rbx), %rdx
	callq	_pci_read_config_word
	movq	$0, 32(%rbx)
	movl	$50000, (%rbx)                  ## imm = 0xC350
	movq	_SPEED_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,7,96,80]
	movups	%xmm0, 48(%rbx)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [64,96,2,15]
	movups	%xmm0, 64(%rbx)
	movabsq	$30064771127, %rax              ## imm = 0x700000037
	movq	%rax, 80(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	movq	___ATL2_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_COMMAND,4,2                ## @PCI_COMMAND
	.comm	_SPEED_0,4,2                    ## @SPEED_0
	.comm	_FULL_DUPLEX,4,2                ## @FULL_DUPLEX
	.comm	___ATL2_DOWN,4,2                ## @__ATL2_DOWN
	.no_dead_strip	_atl2_sw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function atl2_sw_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	7                               ; 0x7
	.long	96                              ; 0x60
	.long	80                              ; 0x50
lCPI0_1:
	.long	64                              ; 0x40
	.long	96                              ; 0x60
	.long	2                               ; 0x2
	.long	15                              ; 0xf
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_2:
	.long	55                              ; 0x37
	.long	7                               ; 0x7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_atl2_sw_init:                          ; @atl2_sw_init
	.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
	ldr	x0, [x0, #40]
	ldr	w8, [x0, #16]
	str	w8, [x19, #132]
	ldr	q0, [x0]
	stur	q0, [x19, #116]
Lloh0:
	adrp	x8, _PCI_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x19, #112
	bl	_pci_read_config_word
	str	xzr, [x19, #32]
	mov	w8, #50000
	str	w8, [x19]
Lloh3:
	adrp	x8, _SPEED_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FULL_DUPLEX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FULL_DUPLEX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
Lloh11:
	adrp	x8, lCPI0_1@PAGE
Lloh12:
	ldr	q1, [x8, lCPI0_1@PAGEOFF]
	stp	q0, q1, [x19, #48]
Lloh13:
	adrp	x8, lCPI0_2@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	str	d0, [x19, #80]
	stp	xzr, xzr, [x19, #96]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [x19, #88]
	add	x0, x19, #8
	bl	_spin_lock_init
Lloh15:
	adrp	x8, ___ATL2_DOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___ATL2_DOWN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_COMMAND,4,2                ; @PCI_COMMAND
	.comm	_SPEED_0,4,2                    ; @SPEED_0
	.comm	_FULL_DUPLEX,4,2                ; @FULL_DUPLEX
	.comm	___ATL2_DOWN,4,2                ; @__ATL2_DOWN
	.no_dead_strip	_atl2_sw_init
.subsections_via_symbols
