	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_core_reserve_gids         ## -- Begin function mlx5_core_reserve_gids
	.p2align	4, 0x90
_mlx5_core_reserve_gids:                ## @mlx5_core_reserve_gids
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MLX5_INTERFACE_STATE_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_core_err
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movl	(%rbx), %ecx
	subl	%r14d, %ecx
	jae	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_6:
	movl	%r14d, %edx
	addq	8(%rbx), %rdx
	movq	_MLX5_MAX_RESERVED_GIDS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_mlx5_core_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movl	%ecx, (%rbx)
	movq	%rdx, 8(%rbx)
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_core_dbg
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_INTERFACE_STATE_UP,4,2    ## @MLX5_INTERFACE_STATE_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot reserve GIDs when interfaces are up\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"GID table exhausted attempting to reserve %d more GIDs\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_MAX_RESERVED_GIDS,8,3     ## @MLX5_MAX_RESERVED_GIDS
L_.str.2:                               ## @.str.2
	.asciz	"Unable to reserve %d more GIDs\n"

L_.str.3:                               ## @.str.3
	.asciz	"Reserved %u GIDs starting at %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_core_reserve_gids         ; -- Begin function mlx5_core_reserve_gids
	.p2align	2
_mlx5_core_reserve_gids:                ; @mlx5_core_reserve_gids
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MLX5_INTERFACE_STATE_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_INTERFACE_STATE_UP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	w8, [x19]
	subs	w3, w8, w20
	b.hs	LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	add	x2, x8, w20, uxtw
Lloh9:
	adrp	x8, _MLX5_MAX_RESERVED_GIDS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_MAX_RESERVED_GIDS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_9
; %bb.5:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_core_warn
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	str	w3, [x19]
	str	x2, [x19, #8]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_dbg
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_INTERFACE_STATE_UP,4,2    ; @MLX5_INTERFACE_STATE_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot reserve GIDs when interfaces are up\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"GID table exhausted attempting to reserve %d more GIDs\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_MAX_RESERVED_GIDS,8,3     ; @MLX5_MAX_RESERVED_GIDS
l_.str.2:                               ; @.str.2
	.asciz	"Unable to reserve %d more GIDs\n"

l_.str.3:                               ; @.str.3
	.asciz	"Reserved %u GIDs starting at %u\n"

.subsections_via_symbols
