	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_hv_vhca_control_agent_invalidate
_mlx5_hv_vhca_control_agent_invalidate: ## @mlx5_hv_vhca_control_agent_invalidate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	(%r15), %r14
	movl	$0, -28(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_mlx5_hv_read_config
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mlx5_hv_vhca_capabilities
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	%eax, (%rbx)
	movl	-28(%rbp), %eax
LBB0_6:
	notl	%eax
	testl	%eax, 4(%rbx)
	jne	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_hv_vhca_agents_control
	movl	8(%rbx), %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_mlx5_hv_write_config
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_mlx5_hv_vhca_control_agent_invalidate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_hv_vhca_control_agent_invalidate
_mlx5_hv_vhca_control_agent_invalidate: ; @mlx5_hv_vhca_control_agent_invalidate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x21, [x0]
	ldr	x19, [x21]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #16
	mov	w3, #0
	bl	_mlx5_hv_read_config
	cbnz	w0, LBB0_9
; %bb.2:
	add	x1, sp, #12
	mov	x0, x21
	bl	_mlx5_hv_vhca_capabilities
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w9, [x20]
	cmp	w9, w8
	b.eq	LBB0_5
; %bb.4:
	str	w8, [x20]
	ldr	w8, [sp, #12]
LBB0_5:
	ldr	w9, [x20, #4]
	bics	wzr, w9, w8
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	bl	_mlx5_hv_vhca_agents_control
	ldr	w8, [x20, #8]
	str	w8, [x20, #12]
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #16
	mov	w3, #0
	bl	_mlx5_hv_write_config
LBB0_9:
	mov	x0, x20
	bl	_kfree
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_mlx5_hv_vhca_control_agent_invalidate
.subsections_via_symbols
