	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fw_fatal_reporter_dump
_mlx5_fw_fatal_reporter_dump:           ## @mlx5_fw_fatal_reporter_dump
	.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	%rdx, %r12
	movq	%rsi, %r14
	callq	_devlink_health_reporter_priv
	movq	%rax, %rbx
	movq	(%rax), %r15
	movq	%rax, %rdi
	callq	_mlx5_core_is_pf
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kvmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mlx5_crdump_collect
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_6
LBB0_15:
	movq	%r13, %rdi
	callq	_kvfree
	jmp	LBB0_16
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_mlx5_fw_reporter_ctx_pairs_put
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_devlink_fmsg_arr_pair_nest_start
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	testq	%r15, %r15
	jle	LBB0_13
## %bb.10:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rbx
	subq	%r12, %rbx
	movq	_MLX5_CR_DUMP_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	cmovgeq	%rax, %rbx
	leaq	(%r12,%r13), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_devlink_fmsg_binary_put
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	%rbx, %r12
	cmpq	%r12, %r15
	jg	LBB0_12
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_devlink_fmsg_arr_pair_nest_end
LBB0_14:
	movl	%eax, %r14d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crdump_data"

	.comm	_MLX5_CR_DUMP_CHUNK_SIZE,8,3    ## @MLX5_CR_DUMP_CHUNK_SIZE
	.no_dead_strip	_mlx5_fw_fatal_reporter_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fw_fatal_reporter_dump
_mlx5_fw_fatal_reporter_dump:           ; @mlx5_fw_fatal_reporter_dump
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	bl	_devlink_health_reporter_priv
	mov	x23, x0
	ldr	x20, [x0]
	bl	_mlx5_core_is_pf
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvmalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x0, x23
	mov	x1, x21
	bl	_mlx5_crdump_collect
	mov	x23, x0
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x21
	bl	_kvfree
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	cbz	x22, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x22
	bl	_mlx5_fw_reporter_ctx_pairs_put
	mov	x23, x0
	cbnz	w0, LBB0_3
LBB0_10:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devlink_fmsg_arr_pair_nest_start
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.11:
	cmp	x20, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x24, #0
Lloh9:
	adrp	x25, _MLX5_CR_DUMP_CHUNK_SIZE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _MLX5_CR_DUMP_CHUNK_SIZE@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	sub	x9, x20, x24
	cmp	x9, x8
	csel	x22, x9, x8, lt
	add	x1, x21, x24
	mov	x0, x19
	mov	x2, x22
	bl	_devlink_fmsg_binary_put
	cbnz	w0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x22, x24
	cmp	x20, x24
	b.gt	LBB0_13
LBB0_15:
	mov	x0, x19
	bl	_devlink_fmsg_arr_pair_nest_end
LBB0_16:
	mov	x23, x0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crdump_data"

	.comm	_MLX5_CR_DUMP_CHUNK_SIZE,8,3    ; @MLX5_CR_DUMP_CHUNK_SIZE
	.no_dead_strip	_mlx5_fw_fatal_reporter_dump
.subsections_via_symbols
