	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_alloc_integrity_descs
_mlx5_alloc_integrity_descs:            ## @mlx5_alloc_integrity_descs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r14
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_to_mdev
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	callq	_to_mpd
	movl	(%rax), %esi
	leaq	-96(%rbp), %rcx
	movl	%ebx, %edi
	movl	$2, %edx
	callq	_mlx5_core_create_psv
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	pshufd	$78, -96(%rbp), %xmm0           ## xmm0 = mem[2,3,0,1]
	movdqu	%xmm0, 8(%rax)
	movq	$1, (%rax)
	incl	24(%rax)
	movq	_MLX5_MKC_ACCESS_MODE_KLMS@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	%r15, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	$4, %ecx
	callq	_mlx5_ib_alloc_pi_mr
	movq	%rax, 8(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_5:
	movq	_MLX5_MKC_ACCESS_MODE_MTT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %ecx
	callq	_mlx5_ib_alloc_pi_mr
	movq	%rax, 16(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_9
LBB0_7:
	movq	_create_mkey_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_memory_key_mkey_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %rbx
	movq	_bsf_en@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	_bsf_octword_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_MKEY_BSF_OCTO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movl	(%r12), %r9d
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	callq	__mlx5_alloc_mkey_descs
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	movl	%eax, %ebx
	movq	16(%r13), %rax
	movl	(%rax), %edi
	callq	_to_mdev
	movq	16(%r13), %rsi
	movq	%rax, %rdi
	callq	_dereg_mr
	movq	$0, 16(%r13)
	movl	%ebx, %r12d
LBB0_9:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_to_mdev
	movq	8(%r13), %rsi
	movq	%rax, %rdi
	callq	_dereg_mr
	movq	$0, 8(%r13)
LBB0_10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	(%r13), %rax
	movq	16(%rax), %rsi
	callq	_mlx5_core_destroy_psv
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%r13), %rax
	movq	16(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_ib_warn
LBB0_12:
	movl	(%rbx), %edi
	movq	(%r13), %rax
	movq	8(%rax), %rsi
	callq	_mlx5_core_destroy_psv
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%r13), %rax
	movq	8(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_ib_warn
LBB0_14:
	movq	(%r13), %rdi
	callq	_kfree
LBB0_15:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_MKC_ACCESS_MODE_KLMS,4,2  ## @MLX5_MKC_ACCESS_MODE_KLMS
	.comm	_MLX5_MKC_ACCESS_MODE_MTT,4,2   ## @MLX5_MKC_ACCESS_MODE_MTT
	.comm	_create_mkey_in,4,2             ## @create_mkey_in
	.comm	_memory_key_mkey_entry,4,2      ## @memory_key_mkey_entry
	.comm	_bsf_en,4,2                     ## @bsf_en
	.comm	_bsf_octword_size,4,2           ## @bsf_octword_size
	.comm	_MLX5_MKEY_BSF_OCTO_SIZE,4,2    ## @MLX5_MKEY_BSF_OCTO_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to destroy mem psv %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to destroy wire psv %d\n"

	.no_dead_strip	_mlx5_alloc_integrity_descs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mlx5_alloc_integrity_descs
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mlx5_alloc_integrity_descs:            ; @mlx5_alloc_integrity_descs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x5
	mov	x22, x4
	mov	x25, x3
	mov	x26, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x0]
	bl	_to_mdev
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w24, [x20]
	mov	x0, x23
	bl	_to_mpd
	ldr	w1, [x0]
	add	x3, sp, #8
	mov	x0, x24
	mov	w2, #2
	bl	_mlx5_core_create_psv
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.2:
	ldr	x8, [x19]
	ldp	x9, x10, [sp, #8]
	stp	x10, x9, [x8, #8]
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	ldr	w9, [x8, #24]
	add	w9, w9, #1
	str	w9, [x8, #24]
Lloh8:
	adrp	x27, _MLX5_MKC_ACCESS_MODE_KLMS@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MLX5_MKC_ACCESS_MODE_KLMS@GOTPAGEOFF]
	ldr	w4, [x27]
	mov	x0, x23
	mov	x1, x26
	mov	x2, x25
	mov	w3, #4
	bl	_mlx5_ib_alloc_pi_mr
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_10
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_5:
Lloh13:
	adrp	x8, _MLX5_MKC_ACCESS_MODE_MTT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLX5_MKC_ACCESS_MODE_MTT@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x26
	mov	x2, x25
	mov	w3, #4
	bl	_mlx5_ib_alloc_pi_mr
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _create_mkey_in@GOTPAGE
Lloh17:
	ldr	x8, [x8, _create_mkey_in@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _memory_key_mkey_entry@GOTPAGE
Lloh20:
	ldr	x8, [x8, _memory_key_mkey_entry@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_MLX5_ADDR_OF
	mov	x24, x0
Lloh22:
	adrp	x8, _bsf_en@GOTPAGE
Lloh23:
	ldr	x8, [x8, _bsf_en@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, x0
	mov	w3, #1
	bl	_MLX5_SET
Lloh25:
	adrp	x8, _bsf_octword_size@GOTPAGE
Lloh26:
	ldr	x8, [x8, _bsf_octword_size@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _MLX5_MKEY_BSF_OCTO_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MLX5_MKEY_BSF_OCTO_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x24
	bl	_MLX5_SET
	ldr	w5, [x27]
	mov	x0, x23
	mov	x1, x19
	mov	w2, #4
	mov	w3, #4
	mov	w4, #0
	mov	x6, x22
	mov	x7, x21
	bl	__mlx5_alloc_mkey_descs
	mov	x24, x0
	cbz	w0, LBB0_15
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_to_mdev
	ldr	x1, [x19, #16]
	bl	_dereg_mr
	str	xzr, [x19, #16]
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_to_mdev
	ldr	x1, [x19, #8]
	bl	_dereg_mr
	str	xzr, [x19, #8]
LBB0_10:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	x1, [x8, #16]
	bl	_mlx5_core_destroy_psv
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19]
	ldr	x2, [x8, #16]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5_ib_warn
LBB0_12:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	bl	_mlx5_core_destroy_psv
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19]
	ldr	x2, [x8, #8]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mlx5_ib_warn
LBB0_14:
	ldr	x0, [x19]
	bl	_kfree
LBB0_15:
	ldr	x8, [sp, #24]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_MKC_ACCESS_MODE_KLMS,4,2  ; @MLX5_MKC_ACCESS_MODE_KLMS
	.comm	_MLX5_MKC_ACCESS_MODE_MTT,4,2   ; @MLX5_MKC_ACCESS_MODE_MTT
	.comm	_create_mkey_in,4,2             ; @create_mkey_in
	.comm	_memory_key_mkey_entry,4,2      ; @memory_key_mkey_entry
	.comm	_bsf_en,4,2                     ; @bsf_en
	.comm	_bsf_octword_size,4,2           ; @bsf_octword_size
	.comm	_MLX5_MKEY_BSF_OCTO_SIZE,4,2    ; @MLX5_MKEY_BSF_OCTO_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to destroy mem psv %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to destroy wire psv %d\n"

	.no_dead_strip	_mlx5_alloc_integrity_descs
.subsections_via_symbols
