	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl2_up
_atl2_up:                               ## @atl2_up
	.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, %rbx
	movq	8(%rdi), %r14
	callq	_atl2_init_hw
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_atl2_set_multi
	movq	%rbx, %rdi
	callq	_init_ring_ptrs
	movq	%rbx, %rdi
	callq	_atl2_restore_vlan
	movq	%rbx, %rdi
	callq	_atl2_configure
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	___ATL2_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_clear_bit
	movq	_REG_MASTER_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ATL2_READ_REG
	movl	(%r14), %esi
	movq	_MASTER_CTRL_MANUAL_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ATL2_WRITE_REG
	movq	%rbx, %rdi
	callq	_atl2_irq_enable
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	___ATL2_DOWN,4,2                ## @__ATL2_DOWN
	.comm	_REG_MASTER_CTRL,4,2            ## @REG_MASTER_CTRL
	.comm	_MASTER_CTRL_MANUAL_INT,4,2     ## @MASTER_CTRL_MANUAL_INT
	.no_dead_strip	_atl2_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl2_up
_atl2_up:                               ; @atl2_up
	.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	x20, [x0, #8]
	bl	_atl2_init_hw
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_atl2_set_multi
	mov	x0, x19
	bl	_init_ring_ptrs
	mov	x0, x19
	bl	_atl2_restore_vlan
	mov	x0, x19
	bl	_atl2_configure
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, ___ATL2_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___ATL2_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_clear_bit
Lloh6:
	adrp	x20, _REG_MASTER_CTRL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _REG_MASTER_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ATL2_READ_REG
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _MASTER_CTRL_MANUAL_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MASTER_CTRL_MANUAL_INT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_ATL2_WRITE_REG
	mov	x0, x19
	bl	_atl2_irq_enable
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	___ATL2_DOWN,4,2                ; @__ATL2_DOWN
	.comm	_REG_MASTER_CTRL,4,2            ; @REG_MASTER_CTRL
	.comm	_MASTER_CTRL_MANUAL_INT,4,2     ; @MASTER_CTRL_MANUAL_INT
	.no_dead_strip	_atl2_up
.subsections_via_symbols
