	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_create_drop_qp         ## -- Begin function mlx4_en_create_drop_qp
	.p2align	4, 0x90
_mlx4_en_create_drop_qp:                ## @mlx4_en_create_drop_qp
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movq	_MLX4_RESERVE_A0_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_RES_USAGE_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-20(%rbp), %rcx
	movl	$1, %esi
	movl	$1, %edx
	callq	_mlx4_qp_reserve_range
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_en_err
	jmp	LBB0_5
LBB0_2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	-20(%rbp), %esi
	leaq	8(%r14), %rdx
	callq	_mlx4_qp_alloc
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_en_err
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	-20(%rbp), %esi
	movl	$1, %edx
	callq	_mlx4_qp_release_range
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_RESERVE_A0_QP,4,2         ## @MLX4_RESERVE_A0_QP
	.comm	_MLX4_RES_USAGE_DRIVER,4,2      ## @MLX4_RES_USAGE_DRIVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed reserving drop qpn\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed allocating drop qp\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_create_drop_qp         ; -- Begin function mlx4_en_create_drop_qp
	.p2align	2
_mlx4_en_create_drop_qp:                ; @mlx4_en_create_drop_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, [x0]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _MLX4_RESERVE_A0_QP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_RESERVE_A0_QP@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _MLX4_RES_USAGE_DRIVER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_RES_USAGE_DRIVER@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	add	x3, sp, #12
	mov	w1, #1
	mov	w2, #1
	bl	_mlx4_qp_reserve_range
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_en_err
	b	LBB0_4
LBB0_2:
	mov	x2, x19
	ldr	x8, [x2], #8
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	bl	_mlx4_qp_alloc
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_en_err
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	mov	w2, #1
	bl	_mlx4_qp_release_range
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_RESERVE_A0_QP,4,2         ; @MLX4_RESERVE_A0_QP
	.comm	_MLX4_RES_USAGE_DRIVER,4,2      ; @MLX4_RES_USAGE_DRIVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed reserving drop qpn\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed allocating drop qp\n"

.subsections_via_symbols
