	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_hv_config_common
_mlx5_hv_config_common:                 ## @mlx5_hv_config_common
	.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
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	_HV_CONFIG_BLOCK_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	cmpl	%r13d, %ecx
	jne	LBB0_2
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_2
## %bb.3:
	movl	%r8d, %r12d
	movq	%rdi, %r15
	movl	%r14d, %eax
	cltd
	idivl	%r13d
	movl	(%rdi), %edi
	testl	%r8d, %r8d
	je	LBB0_4
## %bb.5:
	leaq	-44(%rbp), %r8
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_hyperv_read_cfg_blk
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	cmpl	%r13d, -44(%rbp)
	je	LBB0_11
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_hyperv_write_cfg_blk
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_10:
	testl	%r12d, %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	callq	_mlx5_core_err
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_HV_CONFIG_BLOCK_SIZE_MAX,4,2   ## @HV_CONFIG_BLOCK_SIZE_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to %s hv config, err = %d, len = %d, offset = %d\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"write"

	.no_dead_strip	_mlx5_hv_config_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_hv_config_common
_mlx5_hv_config_common:                 ; @mlx5_hv_config_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _HV_CONFIG_BLOCK_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HV_CONFIG_BLOCK_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x3
	sdiv	w9, w3, w8
	msub	w8, w9, w8, w3
	cbnz	w8, LBB0_6
; %bb.2:
	mov	x22, x4
	mov	x20, x2
	mov	x21, x0
	ldr	w0, [x0]
	sdiv	w3, w19, w2
	cbz	w4, LBB0_7
; %bb.3:
	add	x4, sp, #12
	mov	x2, x20
	bl	_hyperv_read_cfg_blk
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.5:
	mov	w23, #0
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_7:
	mov	x2, x20
	bl	_hyperv_write_cfg_blk
	mov	x23, x0
	cbz	w23, LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w22, #0
	csel	x2, x9, x8, eq
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x19
	bl	_mlx5_core_err
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	cbnz	w23, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_HV_CONFIG_BLOCK_SIZE_MAX,4,2   ; @HV_CONFIG_BLOCK_SIZE_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to %s hv config, err = %d, len = %d, offset = %d\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"write"

	.no_dead_strip	_mlx5_hv_config_common
.subsections_via_symbols
