	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_get_vf_config             ## -- Begin function mlx4_get_vf_config
	.p2align	4, 0x90
_mlx4_get_vf_config:                    ## @mlx4_get_vf_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_mlx4_priv
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_mlx4_is_master
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mlx4_get_slave_indx
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	(%r13), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r13
	movslq	%ebx, %rsi
	leaq	(%rsi,%rsi,8), %rax
	leaq	(%rax,%rax,2), %rbx
	addq	%rsi, %rbx
	leaq	(%rbx,%r13), %rdx
	movl	%r15d, (%r14)
	movzbl	3(%r13,%rbx), %eax
	movq	8(%r14), %rcx
	movl	%eax, 8(%rcx)
	movzbl	2(%r13,%rbx), %eax
	movl	%eax, 12(%rcx)
	movzbl	1(%r13,%rbx), %eax
	movl	%eax, 16(%rcx)
	movzbl	(%r13,%rbx), %eax
	movl	%eax, 20(%rcx)
	movl	24(%r13,%rbx), %eax
	movl	%eax, 44(%r14)
	movl	20(%r13,%rbx), %eax
	movl	%eax, 40(%r14)
	movl	16(%r13,%rbx), %eax
	movl	%eax, 36(%r14)
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mlx4_is_vf_vst_and_prio_qos
	movq	%rax, %rcx
	xorl	%eax, %eax
	movl	$0, %edx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movl	12(%r13,%rbx), %edx
LBB0_7:
	movl	%edx, 32(%r14)
	movq	$0, 24(%r14)
	movl	8(%r13,%rbx), %ecx
	movl	%ecx, 20(%r14)
	movl	4(%r13,%rbx), %ecx
	movl	%ecx, 16(%r14)
	jmp	LBB0_8
LBB0_1:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_get_vf_config             ; -- Begin function mlx4_get_vf_config
	.p2align	2
_mlx4_get_vf_config:                    ; @mlx4_get_vf_config
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_mlx4_priv
	mov	x23, x0
	mov	x0, x21
	bl	_mlx4_is_master
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_mlx4_get_slave_indx
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x23]
	ldr	x23, [x8, w0, uxtw #3]
	sxtw	x24, w20
	mov	w8, #28
	smaddl	x2, w20, w8, x23
	str	w22, [x19]
	ldrb	w8, [x2, #3]
	ldr	x9, [x19, #8]
	str	w8, [x9, #8]
	ldrb	w8, [x2, #2]
	str	w8, [x9, #12]
	ldrb	w8, [x2, #1]
	str	w8, [x9, #16]
	ldrb	w8, [x2]
	str	w8, [x9, #20]
	ldr	w8, [x2, #24]
	str	w8, [x19, #44]
	ldr	d0, [x2, #16]
	stur	d0, [x19, #36]
	mov	x0, x21
	mov	x1, x20
	bl	_mlx4_is_vf_vst_and_prio_qos
	cbz	x0, LBB0_7
; %bb.3:
	mov	w8, #28
	madd	x8, x24, x8, x23
	ldr	w8, [x8, #12]
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	w8, #0
LBB0_8:
	mov	w0, #0
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
	mov	w8, #28
	madd	x8, x24, x8, x23
	ldur	d0, [x8, #4]
	str	d0, [x19, #16]
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
