	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_crdump_fill
_mlx5_crdump_fill:                      ## @mlx5_crdump_fill
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	cmpl	$4, %r15d
	jl	LBB0_18
## %bb.1:
	movq	%r15, %rax
	shrq	$2, %rax
	cmpl	$32, %r15d
	jb	LBB0_2
## %bb.3:
	movq	_BAD_ACCESS@GOTPCREL(%rip), %r8
	leaq	4(%r8), %rcx
	cmpq	%rcx, %rsi
	jae	LBB0_6
## %bb.4:
	leaq	(%rsi,%rax,4), %rcx
	cmpq	_BAD_ACCESS@GOTPCREL(%rip), %rcx
	jbe	LBB0_6
LBB0_2:
	xorl	%ecx, %ecx
LBB0_12:
	movq	%rcx, %r8
	notq	%r8
	addq	%rax, %r8
	movq	%rax, %rdi
	andq	$3, %rdi
	je	LBB0_15
## %bb.13:
	movq	_BAD_ACCESS@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
	decq	%rdi
	jne	LBB0_14
LBB0_15:
	cmpq	$3, %r8
	jb	LBB0_18
## %bb.16:
	movq	_BAD_ACCESS@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %edi
	movl	%edi, (%rsi,%rcx,4)
	movl	(%rdx), %edi
	movl	%edi, 4(%rsi,%rcx,4)
	movl	(%rdx), %edi
	movl	%edi, 8(%rsi,%rcx,4)
	movl	(%rdx), %edi
	movl	%edi, 12(%rsi,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_17
	jmp	LBB0_18
LBB0_6:
	movl	%eax, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.7:
	movq	%r9, %rdi
	andq	$-2, %rdi
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rsi,%rdx,4)
	movdqu	%xmm0, 16(%rsi,%rdx,4)
	movdqu	%xmm0, 32(%rsi,%rdx,4)
	movdqu	%xmm0, 48(%rsi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rsi,%rdx,4)
	movdqu	%xmm0, 16(%rsi,%rdx,4)
LBB0_11:
	cmpq	%rax, %rcx
	jne	LBB0_12
LBB0_18:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_mlx5_vsc_gw_read_block_fast
	testl	%eax, %eax
	jle	LBB0_21
## %bb.19:
	xorl	%ecx, %ecx
	cmpl	%eax, %r15d
	je	LBB0_24
## %bb.20:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_mlx5_core_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movl	%eax, %ecx
	jne	LBB0_24
## %bb.22:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_23:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_24:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%edx, %edx
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_BAD_ACCESS,4,2                 ## @BAD_ACCESS
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read full dump, read %d out of %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlx5_crdump_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_crdump_fill
_mlx5_crdump_fill:                      ; @mlx5_crdump_fill
	.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	x20, x0
	ldr	w19, [x0]
	cmp	w19, #4
	b.lt	LBB0_9
; %bb.1:
	lsr	x9, x19, #2
Lloh0:
	adrp	x8, _BAD_ACCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BAD_ACCESS@GOTPAGEOFF]
	cmp	w19, #64
	b.lo	LBB0_6
; %bb.2:
	add	x10, x1, x9, lsl #2
	add	x11, x8, #4
	cmp	x1, x11
	ccmp	x10, x8, #0, lo
	b.hi	LBB0_6
; %bb.3:
	and	x10, x9, #0x3ffffff0
	ld1r.4s	{ v0 }, [x8]
	add	x11, x1, #32
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x10, #0
LBB0_7:
	add	x11, x1, x10, lsl #2
	sub	x9, x9, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	str	w10, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x20
	mov	x2, x19
	bl	_mlx5_vsc_gw_read_block_fast
	mov	x2, x0
	cmp	w0, #0
	b.le	LBB0_12
; %bb.10:
	cmp	w19, w2
	b.ne	LBB0_14
; %bb.11:
	mov	w2, #0
	b	LBB0_16
LBB0_12:
	cbnz	w2, LBB0_16
; %bb.13:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_mlx5_core_warn
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w2, w8
LBB0_16:
	mov	x0, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BAD_ACCESS,4,2                 ; @BAD_ACCESS
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read full dump, read %d out of %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlx5_crdump_fill
.subsections_via_symbols
