	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_crdump_init               ## -- Begin function mlx4_crdump_init
	.p2align	4, 0x90
_mlx4_crdump_init:                      ## @mlx4_crdump_init
	.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	%rdi, %r15
	callq	_mlx4_priv
	movl	%eax, %edi
	callq	_priv_to_devlink
	movq	%rax, %r14
	movq	(%r15), %rbx
	movq	(%rbx), %rdi
	movl	$0, 8(%rbx)
	movq	_region_cr_space_str@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MAX_NUM_OF_DUMPS_TO_STORE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%esi, %esi
	callq	_pci_resource_len
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_devlink_region_create
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_region_cr_space_str@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_mlx4_warn
LBB0_2:
	movq	_region_fw_health_str@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MAX_NUM_OF_DUMPS_TO_STORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HEALTH_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_devlink_region_create
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %r14d
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_mlx4_warn
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_region_cr_space_str,4,2        ## @region_cr_space_str
	.comm	_MAX_NUM_OF_DUMPS_TO_STORE,4,2  ## @MAX_NUM_OF_DUMPS_TO_STORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crdump: create devlink region %s err %ld\n"

	.comm	_region_fw_health_str,4,2       ## @region_fw_health_str
	.comm	_HEALTH_BUFFER_SIZE,4,2         ## @HEALTH_BUFFER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_crdump_init               ; -- Begin function mlx4_crdump_init
	.p2align	2
_mlx4_crdump_init:                      ; @mlx4_crdump_init
	.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	x19, x0
	bl	_mlx4_priv
	bl	_priv_to_devlink
	mov	x20, x0
	ldr	x23, [x19]
	ldr	x0, [x23]
	str	wzr, [x23, #8]
Lloh0:
	adrp	x25, _region_cr_space_str@GOTPAGE
Lloh1:
	ldr	x25, [x25, _region_cr_space_str@GOTPAGEOFF]
	ldr	w21, [x25]
Lloh2:
	adrp	x24, _MAX_NUM_OF_DUMPS_TO_STORE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAX_NUM_OF_DUMPS_TO_STORE@GOTPAGEOFF]
	ldr	w22, [x24]
	mov	w1, #0
	bl	_pci_resource_len
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_devlink_region_create
	str	x0, [x23, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w21, [x25]
	ldr	x0, [x23, #24]
	bl	_PTR_ERR
	mov	x3, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_mlx4_warn
LBB0_2:
Lloh6:
	adrp	x21, _region_fw_health_str@GOTPAGE
Lloh7:
	ldr	x21, [x21, _region_fw_health_str@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x24]
Lloh8:
	adrp	x8, _HEALTH_BUFFER_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HEALTH_BUFFER_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_devlink_region_create
	str	x0, [x23, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w20, [x21]
	ldr	x0, [x23, #16]
	bl	_PTR_ERR
	mov	x3, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx4_warn
LBB0_4:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_region_cr_space_str,4,2        ; @region_cr_space_str
	.comm	_MAX_NUM_OF_DUMPS_TO_STORE,4,2  ; @MAX_NUM_OF_DUMPS_TO_STORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crdump: create devlink region %s err %ld\n"

	.comm	_region_fw_health_str,4,2       ; @region_fw_health_str
	.comm	_HEALTH_BUFFER_SIZE,4,2         ; @HEALTH_BUFFER_SIZE
.subsections_via_symbols
