	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_core_get_caps_mode
_mlx5_core_get_caps_mode:               ## @mlx5_core_get_caps_mode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_query_hca_cap_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r14d
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_query_hca_cap_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r15d
	shll	$2, %r14d
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	-52(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx,2), %ebx
	movq	_query_hca_cap_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_opcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_CMD_OP_QUERY_HCA_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_MLX5_SET
	movq	_query_hca_cap_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_op_mod@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	movl	%ebx, %ecx
	callq	_MLX5_SET
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r14d, %edx
	movq	%r13, %rcx
	movl	%r15d, %r8d
	callq	_mlx5_cmd_exec
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_mlx5_core_warn
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	_query_hca_cap_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_capability@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %r15
	cmpl	$129, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_8
## %bb.5:
	cmpl	$128, -52(%rbp)                 ## 4-byte Folded Reload
	movq	%r14, %rdx
	movq	%rbx, %rdi
	jne	LBB0_9
## %bb.6:
	movq	8(%rdi), %rax
	movl	%edx, %ecx
	jmp	LBB0_7
LBB0_8:
	movq	(%rbx), %rax
	movl	%r14d, %ecx
LBB0_7:
	movl	(%rax,%rcx,4), %r14d
	movq	_hca_cap_union@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_UN_SZ_BYTES
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_mlx5_core_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movq	%r13, %rdi
	callq	_kfree
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_query_hca_cap_in,4,2           ## @query_hca_cap_in
	.comm	_query_hca_cap_out,4,2          ## @query_hca_cap_out
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_opcode,4,2                     ## @opcode
	.comm	_MLX5_CMD_OP_QUERY_HCA_CAP,4,2  ## @MLX5_CMD_OP_QUERY_HCA_CAP
	.comm	_op_mod,4,2                     ## @op_mod
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QUERY_HCA_CAP : type(%x) opmode(%x) Failed(%d)\n"

	.comm	_capability,4,2                 ## @capability
	.comm	_hca_cap_union,4,2              ## @hca_cap_union
L_.str.1:                               ## @.str.1
	.asciz	"Tried to query dev cap type(%x) with wrong opmode(%x)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlx5_core_get_caps_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_core_get_caps_mode
_mlx5_core_get_caps_mode:               ; @mlx5_core_get_caps_mode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _query_hca_cap_in@GOTPAGE
Lloh4:
	ldr	x28, [x28, _query_hca_cap_in@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_MLX5_ST_SZ_BYTES
	mov	x19, x0
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh7:
	adrp	x27, _query_hca_cap_out@GOTPAGE
Lloh8:
	ldr	x27, [x27, _query_hca_cap_out@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_MLX5_ST_SZ_BYTES
	mov	x24, x0
	lsl	w25, w19, #2
	mov	x0, x23
	mov	w1, #0
	mov	x2, x25
	bl	_memset
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x26, x21
	bfi	w26, w20, #1, #31
	ldr	w0, [x28]
Lloh12:
	adrp	x8, _opcode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _MLX5_CMD_OP_QUERY_HCA_CAP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX5_CMD_OP_QUERY_HCA_CAP@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x1, x23
	bl	_MLX5_SET
	ldr	w0, [x28]
Lloh18:
	adrp	x8, _op_mod@GOTPAGE
Lloh19:
	ldr	x8, [x8, _op_mod@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, x23
	mov	x3, x26
	bl	_MLX5_SET
	mov	x0, x22
	mov	x1, x23
	mov	x2, x25
	mov	x3, x19
	mov	x4, x24
	bl	_mlx5_cmd_exec
	cbz	w0, LBB0_4
; %bb.2:
	mov	x23, x0
	str	x23, [sp, #-16]!
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	bl	_mlx5_core_warn
	add	sp, sp, #16
	b	LBB0_10
LBB0_3:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_4:
	ldr	w0, [x27]
Lloh26:
	adrp	x8, _capability@GOTPAGE
Lloh27:
	ldr	x8, [x8, _capability@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_MLX5_ADDR_OF
	mov	x23, x0
	cmp	w21, #129
	b.eq	LBB0_7
; %bb.5:
	cmp	w21, #128
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x22, #8]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x22]
LBB0_8:
	ldr	w20, [x8, w20, uxtw #2]
Lloh29:
	adrp	x8, _hca_cap_union@GOTPAGE
Lloh30:
	ldr	x8, [x8, _hca_cap_union@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_MLX5_UN_SZ_BYTES
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_memcpy
	mov	w23, #0
	b	LBB0_10
LBB0_9:
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	bl	_mlx5_core_warn
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x23
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_query_hca_cap_in,4,2           ; @query_hca_cap_in
	.comm	_query_hca_cap_out,4,2          ; @query_hca_cap_out
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_opcode,4,2                     ; @opcode
	.comm	_MLX5_CMD_OP_QUERY_HCA_CAP,4,2  ; @MLX5_CMD_OP_QUERY_HCA_CAP
	.comm	_op_mod,4,2                     ; @op_mod
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QUERY_HCA_CAP : type(%x) opmode(%x) Failed(%d)\n"

	.comm	_capability,4,2                 ; @capability
	.comm	_hca_cap_union,4,2              ; @hca_cap_union
l_.str.1:                               ; @.str.1
	.asciz	"Tried to query dev cap type(%x) with wrong opmode(%x)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlx5_core_get_caps_mode
.subsections_via_symbols
