	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_get_coredump
_bnxt_get_coredump:                     ## @bnxt_get_coredump
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -128(%rbp)
	movq	$0, -112(%rbp)
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ktime_get_real_seconds
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_sys_tz@GOTPCREL(%rip), %rax
	imull	$60, (%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	$8, (%rbx)
	testq	%r15, %r15
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movl	$0, (%rsp)
	leaq	-48(%rbp), %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_bnxt_fill_coredump_seg_hdr
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	leaq	4(%r15), %rdi
	leaq	4(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	$8, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_2:
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bnxt_hwrm_dbg_coredump_list
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_15:
	testq	%r15, %r15
	je	LBB0_17
## %bb.16:
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	addq	%rax, %r15
	movl	-128(%rbp), %r8d
	incl	%r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r9d
	callq	_bnxt_fill_coredump_record
LBB0_17:
	movq	-120(%rbp), %rdi
	callq	_kfree
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	$4, (%rax)
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-128(%rbp), %eax
	leal	(,%rax,4), %ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addl	%ecx, (%rdx)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movq	-120(%rbp), %r13
	xorl	%r14d, %r14d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movslq	%ebx, %rdi
	addq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %eax
	addl	%eax, %ebx
	addl	$4, %ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	addq	$32, %r13
	incl	%r14d
	cmpl	-128(%rbp), %r14d
	jge	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movl	$0, -44(%rbp)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_bnxt_hwrm_dbg_coredump_initiate
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	4(%rax), %r9d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	leaq	-44(%rbp), %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	callq	_bnxt_hwrm_dbg_coredump_retrieve
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %edi
	movl	(%r13), %edx
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	leaq	-48(%rbp), %rbx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	%rcx, %rdi
	callq	_jiffies_to_msecs
	movl	-44(%rbp), %ecx
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_bnxt_fill_coredump_seg_hdr
	testq	%r15, %r15
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %eax
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_sys_tz,4,2                     ## @sys_tz
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get coredump segment list\n"

	.comm	_jiffies,8,3                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initiate coredump for seg = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to retrieve coredump for seg = %d\n"

	.no_dead_strip	_bnxt_get_coredump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_get_coredump
_bnxt_get_coredump:                     ; @bnxt_get_coredump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #48]
	bl	_ktime_get_real_seconds
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x8, _sys_tz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sys_tz@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mov	w8, #8
	str	w8, [x19]
	cbz	x21, LBB0_2
; %bb.1:
	add	x1, sp, #56
	mov	x0, x20
	mov	x2, #0
	mov	w3, #4
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_bnxt_fill_coredump_seg_hdr
	add	x1, sp, #56
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	add	x0, x21, #4
	add	x1, x20, #4
	mov	w2, #4
	bl	_memcpy
	mov	w28, #8
	b	LBB0_3
LBB0_2:
	mov	w28, #0
LBB0_3:
	add	x1, sp, #32
	mov	x0, x20
	bl	_bnxt_hwrm_dbg_coredump_list
	cbz	w0, LBB0_8
; %bb.4:
	mov	x24, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_5:
	cbz	x21, LBB0_7
; %bb.6:
	mov	w8, #60
	ldp	w9, w2, [sp, #20]               ; 8-byte Folded Reload
	mul	w3, w9, w8
	add	x1, x21, w28, sxtw
	ldr	w8, [sp, #32]
	add	w4, w8, #1
	mov	x0, x20
	mov	x5, x24
	bl	_bnxt_fill_coredump_record
LBB0_7:
	ldr	x0, [sp, #40]
	bl	_kfree
	ldr	w8, [x19]
	add	w8, w8, #4
	str	w8, [x19]
	mov	x0, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	ldr	w8, [sp, #32]
	ldr	w9, [x19]
	add	w9, w9, w8, lsl #2
	str	w9, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.9:
	mov	w22, #0
	ldr	x23, [sp, #40]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x0, x21, w28, sxtw
	add	x1, sp, #56
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #28]
	add	w9, w28, w8
	add	w28, w9, #4
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	add	x23, x23, #32
	add	w22, w22, #1
	ldr	w8, [sp, #32]
	cmp	w22, w8
	b.ge	LBB0_5
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #4]
	bl	_le16_to_cpu
	mov	x25, x0
	ldr	w0, [x23]
	bl	_le16_to_cpu
	mov	x26, x0
	str	wzr, [sp, #28]
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	x27, [x8]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x26
	bl	_bnxt_hwrm_dbg_coredump_initiate
	cbz	w0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x24, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w5, w28, #4
	add	x3, sp, #28
	mov	x0, x20
	mov	x1, x25
	mov	x2, x26
	mov	x4, x21
	bl	_bnxt_hwrm_dbg_coredump_retrieve
	mov	x24, x0
	cbz	w0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x20]
	ldr	w8, [x23]
	str	x8, [sp]
	bl	_netdev_err
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	sub	x0, x8, x27
	bl	_jiffies_to_msecs
	mov	x5, x0
	ldr	w3, [sp, #28]
	add	x1, sp, #56
	mov	x0, x20
	mov	x2, x23
	mov	x4, x24
	mov	w6, #0
	bl	_bnxt_fill_coredump_seg_hdr
	cbnz	x21, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #28]
	b	LBB0_11
LBB0_19:
	mov	w24, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_sys_tz,4,2                     ; @sys_tz
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get coredump segment list\n"

	.comm	_jiffies,8,3                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initiate coredump for seg = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to retrieve coredump for seg = %d\n"

	.no_dead_strip	_bnxt_get_coredump
.subsections_via_symbols
