	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_query_sl2vl
_mlx4_ib_query_sl2vl:                   ## @mlx4_ib_query_sl2vl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_MLX4_MAD_IFC_IGNORE_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_to_mdev
	movl	(%rax), %edi
	callq	_mlx4_is_slave
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$0, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	negl	%ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, %r15
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kmalloc
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_7
## %bb.3:
	testq	%r12, %r12
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_init_query_mad
	movq	_IB_SMP_ATTR_SL_TO_VL_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	$0, 8(%r15)
	movq	%r13, %rdi
	callq	_to_mdev
	movl	(%rax), %edi
	callq	_mlx4_is_mfunc
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_MLX4_MAD_IFC_NET_VIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	orl	%r14d, %ebx
	movq	%r13, %rdi
	callq	_to_mdev
	movq	%r12, (%rsp)
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_mlx4_MAD_IFC
	movl	%eax, %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_MAD_IFC_IGNORE_KEYS,4,2   ## @MLX4_MAD_IFC_IGNORE_KEYS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_SMP_ATTR_SL_TO_VL_TABLE,4,2 ## @IB_SMP_ATTR_SL_TO_VL_TABLE
	.comm	_MLX4_MAD_IFC_NET_VIEW,4,2      ## @MLX4_MAD_IFC_NET_VIEW
	.no_dead_strip	_mlx4_ib_query_sl2vl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_query_sl2vl
_mlx4_ib_query_sl2vl:                   ; @mlx4_ib_query_sl2vl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MLX4_MAD_IFC_IGNORE_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_MAD_IFC_IGNORE_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	bl	_to_mdev
	ldr	w0, [x0]
	bl	_mlx4_is_slave
	cbz	x0, LBB0_2
; %bb.1:
	mov	w19, #0
	str	wzr, [x21]
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kzalloc
	mov	x21, x0
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kmalloc
	mov	x22, x0
	cmp	x21, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	neg	w19, w24
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_init_query_mad
Lloh8:
	adrp	x8, _IB_SMP_ATTR_SL_TO_VL_TABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_SMP_ATTR_SL_TO_VL_TABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	str	xzr, [x21, #8]
	mov	x0, x20
	bl	_to_mdev
	ldr	w0, [x0]
	bl	_mlx4_is_mfunc
Lloh11:
	adrp	x8, _MLX4_MAD_IFC_NET_VIEW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX4_MAD_IFC_NET_VIEW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w23, w8, w23
	mov	x0, x20
	bl	_to_mdev
	mov	x1, x23
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	mov	x5, x21
	mov	x6, x22
	bl	_mlx4_MAD_IFC
	mov	x19, x0
LBB0_5:
	mov	x0, x21
	bl	_kfree
	mov	x0, x22
	bl	_kfree
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_MAD_IFC_IGNORE_KEYS,4,2   ; @MLX4_MAD_IFC_IGNORE_KEYS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_SMP_ATTR_SL_TO_VL_TABLE,4,2 ; @IB_SMP_ATTR_SL_TO_VL_TABLE
	.comm	_MLX4_MAD_IFC_NET_VIEW,4,2      ; @MLX4_MAD_IFC_NET_VIEW
	.no_dead_strip	_mlx4_ib_query_sl2vl
.subsections_via_symbols
