	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_get_dump_length          ## -- Begin function cxgb4_get_dump_length
	.p2align	4, 0x90
_cxgb4_get_dump_length:                 ## @cxgb4_get_dump_length
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_CXGB4_ETH_DUMP_HW@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	testl	%esi, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_cxgb4_collect_hw_dump@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_cxgb4_get_entity_length
	addl	%eax, %r13d
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	_CXGB4_ETH_DUMP_MEM@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_cxgb4_collect_mem_dump@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_cxgb4_get_entity_length
	addl	%eax, %r13d
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_cudbg_get_workspace_size
	movq	_CUDBG_DUMP_BUFF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %r13d
	cmovll	%r13d, %ecx
	testl	%eax, %eax
	cmovel	%r13d, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXGB4_ETH_DUMP_HW,4,2          ## @CXGB4_ETH_DUMP_HW
	.comm	_cxgb4_collect_hw_dump,8,3      ## @cxgb4_collect_hw_dump
	.comm	_CXGB4_ETH_DUMP_MEM,4,2         ## @CXGB4_ETH_DUMP_MEM
	.comm	_cxgb4_collect_mem_dump,8,3     ## @cxgb4_collect_mem_dump
	.comm	_CUDBG_DUMP_BUFF_SIZE,4,2       ## @CUDBG_DUMP_BUFF_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_get_dump_length          ; -- Begin function cxgb4_get_dump_length
	.p2align	2
_cxgb4_get_dump_length:                 ; @cxgb4_get_dump_length
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CXGB4_ETH_DUMP_HW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXGB4_ETH_DUMP_HW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x22, _cxgb4_collect_hw_dump@GOTPAGE
Lloh4:
	ldr	x22, [x22, _cxgb4_collect_hw_dump@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x19
	bl	_cxgb4_get_entity_length
	add	w21, w0, w21
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
Lloh5:
	adrp	x8, _CXGB4_ETH_DUMP_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CXGB4_ETH_DUMP_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.6:
Lloh8:
	adrp	x20, _cxgb4_collect_mem_dump@GOTPAGE
Lloh9:
	ldr	x20, [x20, _cxgb4_collect_mem_dump@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_cxgb4_get_entity_length
	add	w21, w0, w21
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_8
LBB0_9:
	bl	_cudbg_get_workspace_size
Lloh10:
	adrp	x8, _CUDBG_DUMP_BUFF_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CUDBG_DUMP_BUFF_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w21, w8
	csel	w8, w21, w8, lt
	cmp	w0, #0
	csel	w0, w21, w8, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CXGB4_ETH_DUMP_HW,4,2          ; @CXGB4_ETH_DUMP_HW
	.comm	_cxgb4_collect_hw_dump,8,3      ; @cxgb4_collect_hw_dump
	.comm	_CXGB4_ETH_DUMP_MEM,4,2         ; @CXGB4_ETH_DUMP_MEM
	.comm	_cxgb4_collect_mem_dump,8,3     ; @cxgb4_collect_mem_dump
	.comm	_CUDBG_DUMP_BUFF_SIZE,4,2       ; @CUDBG_DUMP_BUFF_SIZE
.subsections_via_symbols
