	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_get_alloc_type            ## -- Begin function mlx5_get_alloc_type
	.p2align	4, 0x90
_mlx5_get_alloc_type:                   ## @mlx5_get_alloc_type
	.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	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-160(%rbp), %r15
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_snprintf
	movl	%ebx, (%r14)
	movq	%r15, %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	_MLX5_ALLOC_TYPE_ALL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	_MLX5_ALLOC_TYPE_ANON@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movq	_MLX5_ALLOC_TYPE_HUGE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	movq	_MLX5_ALLOC_TYPE_CONTIG@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	_MLX5_ALLOC_TYPE_PREFER_CONTIG@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_MLX5_ALLOC_TYPE_PREFER_HUGE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$136, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s_ALLOC_TYPE"

L_.str.1:                               ## @.str.1
	.asciz	"ANON"

	.comm	_MLX5_ALLOC_TYPE_ANON,4,2       ## @MLX5_ALLOC_TYPE_ANON
L_.str.2:                               ## @.str.2
	.asciz	"HUGE"

	.comm	_MLX5_ALLOC_TYPE_HUGE,4,2       ## @MLX5_ALLOC_TYPE_HUGE
L_.str.3:                               ## @.str.3
	.asciz	"CONTIG"

	.comm	_MLX5_ALLOC_TYPE_CONTIG,4,2     ## @MLX5_ALLOC_TYPE_CONTIG
L_.str.4:                               ## @.str.4
	.asciz	"PREFER_CONTIG"

	.comm	_MLX5_ALLOC_TYPE_PREFER_CONTIG,4,2 ## @MLX5_ALLOC_TYPE_PREFER_CONTIG
L_.str.5:                               ## @.str.5
	.asciz	"PREFER_HUGE"

	.comm	_MLX5_ALLOC_TYPE_PREFER_HUGE,4,2 ## @MLX5_ALLOC_TYPE_PREFER_HUGE
L_.str.6:                               ## @.str.6
	.asciz	"ALL"

	.comm	_MLX5_ALLOC_TYPE_ALL,4,2        ## @MLX5_ALLOC_TYPE_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_get_alloc_type            ; -- Begin function mlx5_get_alloc_type
	.p2align	2
_mlx5_get_alloc_type:                   ; @mlx5_get_alloc_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	mov	x3, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #128
	bl	_snprintf
	str	w20, [x19]
	add	x0, sp, #8
	bl	_getenv
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_8
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_9
; %bb.3:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_10
; %bb.4:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_11
; %bb.5:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_12
; %bb.6:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbnz	w0, LBB0_14
; %bb.7:
Lloh17:
	adrp	x8, _MLX5_ALLOC_TYPE_ALL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MLX5_ALLOC_TYPE_ALL@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh19:
	adrp	x8, _MLX5_ALLOC_TYPE_ANON@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLX5_ALLOC_TYPE_ANON@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh21:
	adrp	x8, _MLX5_ALLOC_TYPE_HUGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MLX5_ALLOC_TYPE_HUGE@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh23:
	adrp	x8, _MLX5_ALLOC_TYPE_CONTIG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MLX5_ALLOC_TYPE_CONTIG@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh25:
	adrp	x8, _MLX5_ALLOC_TYPE_PREFER_CONTIG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MLX5_ALLOC_TYPE_PREFER_CONTIG@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh27:
	adrp	x8, _MLX5_ALLOC_TYPE_PREFER_HUGE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MLX5_ALLOC_TYPE_PREFER_HUGE@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_14:
	ldur	x8, [x29, #-24]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s_ALLOC_TYPE"

l_.str.1:                               ; @.str.1
	.asciz	"ANON"

	.comm	_MLX5_ALLOC_TYPE_ANON,4,2       ; @MLX5_ALLOC_TYPE_ANON
l_.str.2:                               ; @.str.2
	.asciz	"HUGE"

	.comm	_MLX5_ALLOC_TYPE_HUGE,4,2       ; @MLX5_ALLOC_TYPE_HUGE
l_.str.3:                               ; @.str.3
	.asciz	"CONTIG"

	.comm	_MLX5_ALLOC_TYPE_CONTIG,4,2     ; @MLX5_ALLOC_TYPE_CONTIG
l_.str.4:                               ; @.str.4
	.asciz	"PREFER_CONTIG"

	.comm	_MLX5_ALLOC_TYPE_PREFER_CONTIG,4,2 ; @MLX5_ALLOC_TYPE_PREFER_CONTIG
l_.str.5:                               ; @.str.5
	.asciz	"PREFER_HUGE"

	.comm	_MLX5_ALLOC_TYPE_PREFER_HUGE,4,2 ; @MLX5_ALLOC_TYPE_PREFER_HUGE
l_.str.6:                               ; @.str.6
	.asciz	"ALL"

	.comm	_MLX5_ALLOC_TYPE_ALL,4,2        ; @MLX5_ALLOC_TYPE_ALL
.subsections_via_symbols
