	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_adapter_up
_ql_adapter_up:                         ## @ql_adapter_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ql_adapter_initialize
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_info
	movq	%rbx, %rdi
	callq	_ql_adapter_reset
	jmp	LBB0_6
LBB0_2:
	movq	_QL_ADAPTER_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %r15
	movq	%r15, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_ql_alloc_rx_buffers
	movq	_STS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ql_read32
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.3:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ql_read32
	testl	%eax, 4(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_ql_link_on
LBB0_5:
	movq	_QL_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	_QL_PROMISCUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movl	8(%rbx), %edi
	callq	_qlge_set_multicast_list
	movq	%rbx, %rdi
	callq	_qlge_restore_vlan
	movq	%rbx, %rdi
	callq	_ql_enable_interrupts
	movq	%rbx, %rdi
	callq	_ql_enable_all_completion_interrupts
	movl	8(%rbx), %edi
	callq	_netif_tx_start_all_queues
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to initialize adapter.\n"

	.comm	_QL_ADAPTER_UP,4,2              ## @QL_ADAPTER_UP
	.comm	_STS,4,2                        ## @STS
	.comm	_QL_ALLMULTI,4,2                ## @QL_ALLMULTI
	.comm	_QL_PROMISCUOUS,4,2             ## @QL_PROMISCUOUS
	.no_dead_strip	_ql_adapter_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_adapter_up
_ql_adapter_up:                         ; @ql_adapter_up
	.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	x20, x0
	bl	_ql_adapter_initialize
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ifup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_info
	mov	x0, x20
	bl	_ql_adapter_reset
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _QL_ADAPTER_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QL_ADAPTER_UP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x21, x20, #12
	mov	x1, x21
	bl	_set_bit
	mov	x0, x20
	bl	_ql_alloc_rx_buffers
Lloh8:
	adrp	x22, _STS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _STS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ql_read32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ql_read32
	ldr	w8, [x20, #4]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_ql_link_on
LBB0_5:
Lloh10:
	adrp	x8, _QL_ALLMULTI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QL_ALLMULTI@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
Lloh13:
	adrp	x8, _QL_PROMISCUOUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QL_PROMISCUOUS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	ldr	w0, [x20, #8]
	bl	_qlge_set_multicast_list
	mov	x0, x20
	bl	_qlge_restore_vlan
	mov	x0, x20
	bl	_ql_enable_interrupts
	mov	x0, x20
	bl	_ql_enable_all_completion_interrupts
	ldr	w0, [x20, #8]
	bl	_netif_tx_start_all_queues
LBB0_6:
	mov	x0, x19
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to initialize adapter.\n"

	.comm	_QL_ADAPTER_UP,4,2              ; @QL_ADAPTER_UP
	.comm	_STS,4,2                        ; @STS
	.comm	_QL_ALLMULTI,4,2                ; @QL_ALLMULTI
	.comm	_QL_PROMISCUOUS,4,2             ; @QL_PROMISCUOUS
	.no_dead_strip	_ql_adapter_up
.subsections_via_symbols
