	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dr_domain_init_resources
_dr_domain_init_resources:              ## @dr_domain_init_resources
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	%rbx, %rsi
	callq	_mlx5_core_alloc_pd
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5dr_dbg
	jmp	LBB0_14
LBB0_2:
	movl	4(%rbx), %edi
	callq	_mlx5_get_uars_page
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_DR_ICM_TYPE_STE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mlx5dr_icm_pool_create
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_DR_ICM_TYPE_MODIFY_ACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mlx5dr_icm_pool_create
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_mlx5dr_send_ring_alloc
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5dr_err
	movq	24(%rbx), %rdi
	callq	_mlx5dr_icm_pool_destroy
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5dr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5dr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5dr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movq	16(%rbx), %rdi
	callq	_mlx5dr_icm_pool_destroy
LBB0_12:
	movl	4(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_mlx5_put_uars_page
LBB0_13:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_mlx5_core_dealloc_pd
LBB0_14:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't allocate PD\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't allocate UAR\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DR_ICM_TYPE_STE,4,2            ## @DR_ICM_TYPE_STE
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't get icm memory\n"

	.comm	_DR_ICM_TYPE_MODIFY_ACTION,4,2  ## @DR_ICM_TYPE_MODIFY_ACTION
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't get action icm memory\n"

L_.str.4:                               ## @.str.4
	.asciz	"Couldn't create send-ring\n"

	.no_dead_strip	_dr_domain_init_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dr_domain_init_resources
_dr_domain_init_resources:              ; @dr_domain_init_resources
	.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	x19, x0
	ldr	w0, [x0, #4]
	mov	x1, x19
	bl	_mlx5_core_alloc_pd
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_dbg
	b	LBB0_13
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_mlx5_get_uars_page
	str	w0, [x19, #8]
	cbz	w0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _DR_ICM_TYPE_STE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DR_ICM_TYPE_STE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mlx5dr_icm_pool_create
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _DR_ICM_TYPE_MODIFY_ACTION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DR_ICM_TYPE_MODIFY_ACTION@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mlx5dr_icm_pool_create
	str	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_mlx5dr_send_ring_alloc
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.6:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_err
	ldr	x0, [x19, #24]
	bl	_mlx5dr_icm_pool_destroy
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_err
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_err
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_err
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	ldr	x0, [x19, #16]
	bl	_mlx5dr_icm_pool_destroy
LBB0_11:
	ldp	w0, w1, [x19, #4]
	bl	_mlx5_put_uars_page
LBB0_12:
	ldp	w1, w0, [x19]
	bl	_mlx5_core_dealloc_pd
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't allocate PD\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't allocate UAR\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DR_ICM_TYPE_STE,4,2            ; @DR_ICM_TYPE_STE
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't get icm memory\n"

	.comm	_DR_ICM_TYPE_MODIFY_ACTION,4,2  ; @DR_ICM_TYPE_MODIFY_ACTION
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't get action icm memory\n"

l_.str.4:                               ; @.str.4
	.asciz	"Couldn't create send-ring\n"

	.no_dead_strip	_dr_domain_init_resources
.subsections_via_symbols
