	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_hv_vhca_init              ## -- Begin function mlx5_hv_vhca_init
	.p2align	4, 0x90
_mlx5_hv_vhca_init:                     ## @mlx5_hv_vhca_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_IS_ERR_OR_NULL                 ## TAILCALL
LBB0_3:
	movl	8(%rbx), %edi
	movq	_mlx5_hv_vhca_invalidate@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_mlx5_hv_register_invalidate
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_mlx5_hv_vhca_control_agent_create
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %edi
	callq	_mlx5_hv_unregister_invalidate
	movq	%r14, %rdi
	jmp	LBB0_2
LBB0_6:
	movq	(%rbx), %rax
	movq	_MLX5_HV_VHCA_AGENT_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r14, (%rax,%rcx,8)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx5_hv_vhca_invalidate,4,2    ## @mlx5_hv_vhca_invalidate
	.comm	_MLX5_HV_VHCA_AGENT_CONTROL,8,3 ## @MLX5_HV_VHCA_AGENT_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_hv_vhca_init              ; -- Begin function mlx5_hv_vhca_init
	.p2align	2
_mlx5_hv_vhca_init:                     ; @mlx5_hv_vhca_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_IS_ERR_OR_NULL
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_IS_ERR_OR_NULL
LBB0_3:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _mlx5_hv_vhca_invalidate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mlx5_hv_vhca_invalidate@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_mlx5_hv_register_invalidate
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	bl	_mlx5_hv_vhca_control_agent_create
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
	bl	_mlx5_hv_unregister_invalidate
	mov	x0, x20
	b	LBB0_2
LBB0_7:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MLX5_HV_VHCA_AGENT_CONTROL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_HV_VHCA_AGENT_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	x20, [x8, x9, lsl #3]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx5_hv_vhca_invalidate,4,2    ; @mlx5_hv_vhca_invalidate
	.comm	_MLX5_HV_VHCA_AGENT_CONTROL,8,3 ; @MLX5_HV_VHCA_AGENT_CONTROL
.subsections_via_symbols
