	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_shutdown_uld_adapter
_cxgb4_shutdown_uld_adapter:            ## @cxgb4_shutdown_uld_adapter
	.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	8(%rdi), %rax
	movl	%esi, %ecx
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%rcx)
	callq	_release_sge_txq_uld
	movl	(%rbx), %eax
	movq	_CXGB4_FULL_INIT_DONE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_quiesce_rx_uld
	movl	(%rbx), %eax
LBB0_3:
	movq	_CXGB4_USING_MSIX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_free_msix_queue_irqs_uld
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_free_sge_queues_uld
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free_queues_uld                ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXGB4_FULL_INIT_DONE,4,2       ## @CXGB4_FULL_INIT_DONE
	.comm	_CXGB4_USING_MSIX,4,2           ## @CXGB4_USING_MSIX
	.no_dead_strip	_cxgb4_shutdown_uld_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_shutdown_uld_adapter
_cxgb4_shutdown_uld_adapter:            ; @cxgb4_shutdown_uld_adapter
	.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
	ldr	x8, [x0, #8]
	add	x9, x8, w1, uxtw #4
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w9, w1
	add	x8, x8, x9, lsl #4
	stp	xzr, xzr, [x8]
	bl	_release_sge_txq_uld
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _CXGB4_FULL_INIT_DONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXGB4_FULL_INIT_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_quiesce_rx_uld
	ldr	w8, [x20]
LBB0_3:
Lloh3:
	adrp	x9, _CXGB4_USING_MSIX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXGB4_USING_MSIX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_free_msix_queue_irqs_uld
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_free_sge_queues_uld
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free_queues_uld
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CXGB4_FULL_INIT_DONE,4,2       ; @CXGB4_FULL_INIT_DONE
	.comm	_CXGB4_USING_MSIX,4,2           ; @CXGB4_USING_MSIX
	.no_dead_strip	_cxgb4_shutdown_uld_adapter
.subsections_via_symbols
