	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movq	_IRQF_SHARED@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	callq	_ql_alloc_mem_resources
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rdi
	callq	_pci_enable_msi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	$0, 16(%rbx)
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movq	_QL_MSI_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_set_bit
	movq	(%r12), %rax
	notq	%rax
	andq	%rax, %r15
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_ql3xxx_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	%r15, %rdx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	cmpq	$0, 16(%rbx)
	jne	LBB0_15
	jmp	LBB0_17
LBB0_8:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_ql_wait_for_drvr_lock
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	_ql_adapter_initialize
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_QL_DRVR_SEM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ql_sem_unlock
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_13:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_free_irq
	cmpq	$0, 16(%rbx)
	je	LBB0_17
LBB0_15:
	movq	_QL_MSI_ENABLED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	8(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	(%rbx), %rdi
	callq	_pci_disable_msi
	jmp	LBB0_17
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_QL_DRVR_SEM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ql_sem_unlock
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_QL_ADAPTER_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_set_bit
	leaq	32(%rbx), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	leaq	28(%rbx), %rdi
	callq	_napi_enable
	movq	%rbx, %rdi
	callq	_ql_enable_interrupts
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to  allocate buffers\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"User requested MSI, but MSI failed to initialize.  Continuing without MSI.\n"

L_.str.2:                               ## @.str.2
	.asciz	"MSI Enabled...\n"

	.comm	_QL_MSI_ENABLED,4,2             ## @QL_MSI_ENABLED
	.comm	_ql3xxx_isr,4,2                 ## @ql3xxx_isr
L_.str.3:                               ## @.str.3
	.asciz	"Failed to reserve interrupt %d - already in use\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to initialize adapter\n"

L_.str.5:                               ## @.str.5
	.asciz	"Releasing driver lock\n"

	.comm	_QL_DRVR_SEM_MASK,4,2           ## @QL_DRVR_SEM_MASK
L_.str.6:                               ## @.str.6
	.asciz	"Could not acquire driver lock\n"

	.comm	_QL_ADAPTER_UP,4,2              ## @QL_ADAPTER_UP
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
L_.str.7:                               ## @.str.7
	.asciz	"calling pci_disable_msi()\n"

	.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0, #40]
Lloh0:
	adrp	x22, _IRQF_SHARED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IRQF_SHARED@GOTPAGEOFF]
	ldr	x21, [x22]
	bl	_ql_alloc_mem_resources
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x0, [x19]
	bl	_pci_enable_msi
	cbz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	str	xzr, [x19, #16]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
Lloh11:
	adrp	x8, _QL_MSI_ENABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QL_MSI_ENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	ldr	x8, [x22]
	bic	x21, x21, x8
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ql3xxx_isr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ql3xxx_isr@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x2, x21
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_14
	b	LBB0_2
LBB0_9:
	add	x22, x19, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_ql_wait_for_drvr_lock
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_ql_adapter_initialize
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.11:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh21:
	adrp	x8, _QL_DRVR_SEM_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QL_DRVR_SEM_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ql_sem_unlock
	b	LBB0_13
LBB0_12:
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	w21, #0
LBB0_13:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_free_irq
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
LBB0_14:
Lloh26:
	adrp	x23, _QL_MSI_ENABLED@GOTPAGE
Lloh27:
	ldr	x23, [x23, _QL_MSI_ENABLED@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x22, x19, #8
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.15:
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	ldr	w0, [x23]
	mov	x1, x22
	bl	_clear_bit
	ldr	x0, [x19]
	bl	_pci_disable_msi
	b	LBB0_2
LBB0_16:
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh32:
	adrp	x8, _QL_DRVR_SEM_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _QL_DRVR_SEM_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ql_sem_unlock
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh35:
	adrp	x8, _QL_ADAPTER_UP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _QL_ADAPTER_UP@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
Lloh38:
	adrp	x8, _jiffies@GOTPAGE
Lloh39:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	add	x0, x19, #32
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x9, _HZ@GOTPAGE
Lloh42:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh43:
	ldrsw	x9, [x9]
	add	x1, x8, x9
	bl	_mod_timer
	add	x0, x19, #28
	bl	_napi_enable
	mov	x0, x19
	bl	_ql_enable_interrupts
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to  allocate buffers\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"User requested MSI, but MSI failed to initialize.  Continuing without MSI.\n"

l_.str.2:                               ; @.str.2
	.asciz	"MSI Enabled...\n"

	.comm	_QL_MSI_ENABLED,4,2             ; @QL_MSI_ENABLED
	.comm	_ql3xxx_isr,4,2                 ; @ql3xxx_isr
l_.str.3:                               ; @.str.3
	.asciz	"Failed to reserve interrupt %d - already in use\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to initialize adapter\n"

l_.str.5:                               ; @.str.5
	.asciz	"Releasing driver lock\n"

	.comm	_QL_DRVR_SEM_MASK,4,2           ; @QL_DRVR_SEM_MASK
l_.str.6:                               ; @.str.6
	.asciz	"Could not acquire driver lock\n"

	.comm	_QL_ADAPTER_UP,4,2              ; @QL_ADAPTER_UP
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
l_.str.7:                               ; @.str.7
	.asciz	"calling pci_disable_msi()\n"

	.no_dead_strip	_ql_adapter_up
.subsections_via_symbols
