	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb_up
_cxgb_up:                               ## @cxgb_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, %r14
	callq	_setup_sge_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	%r14, %rdi
	callq	_setup_rss
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_USING_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_name_msix_vecs
	movq	24(%r14), %rax
	movq	_t4_nondata_intr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edi
	movl	4(%rax), %ecx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_request_msix_queue_irqs
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	%eax, %ebx
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_free_irq
	jmp	LBB0_6
LBB0_8:
	movq	16(%r14), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_t4_intr_handler
	movq	_USING_MSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%r14), %ecx
	jne	LBB0_10
## %bb.9:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_10:
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_6:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_7:
	movq	%r14, %rdi
	callq	_t4_free_sge_resources
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	callq	_enable_rx
	movq	%r14, %rdi
	callq	_t4_sge_start
	movq	%r14, %rdi
	callq	_t4_intr_enable
	movq	_FULL_INIT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	_CXGB4_STATE_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_notify_ulds
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_USING_MSIX,4,2                 ## @USING_MSIX
	.comm	_t4_nondata_intr,4,2            ## @t4_nondata_intr
	.comm	_USING_MSI,4,2                  ## @USING_MSI
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_FULL_INIT_DONE,4,2             ## @FULL_INIT_DONE
	.comm	_CXGB4_STATE_UP,4,2             ## @CXGB4_STATE_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request_irq failed, err %d\n"

	.no_dead_strip	_cxgb_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb_up
_cxgb_up:                               ; @cxgb_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
	bl	_setup_sge_queues
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_setup_rss
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _USING_MSIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USING_MSIX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_name_msix_vecs
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _t4_nondata_intr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _t4_nondata_intr@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldp	w0, w3, [x8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_request_msix_queue_irqs
	cbz	w0, LBB0_10
; %bb.5:
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_t4_intr_handler
	mov	x1, x0
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _USING_MSI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USING_MSI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _IRQF_SHARED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IRQF_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w2, w10, wzr, eq
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbz	w0, LBB0_10
LBB0_7:
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_8:
	mov	x0, x19
	bl	_t4_free_sge_resources
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	bl	_enable_rx
	mov	x0, x19
	bl	_t4_sge_start
	mov	x0, x19
	bl	_t4_intr_enable
Lloh14:
	adrp	x8, _FULL_INIT_DONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FULL_INIT_DONE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh17:
	adrp	x8, _CXGB4_STATE_UP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CXGB4_STATE_UP@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_notify_ulds
	mov	w20, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_USING_MSIX,4,2                 ; @USING_MSIX
	.comm	_t4_nondata_intr,4,2            ; @t4_nondata_intr
	.comm	_USING_MSI,4,2                  ; @USING_MSI
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_FULL_INIT_DONE,4,2             ; @FULL_INIT_DONE
	.comm	_CXGB4_STATE_UP,4,2             ; @CXGB4_STATE_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request_irq failed, err %d\n"

	.no_dead_strip	_cxgb_up
.subsections_via_symbols
