	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcap_cmd
_vcap_cmd:                              ## @vcap_cmd
	.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, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, %edi
	callq	_S2_CORE_UPDATE_CTRL_UPDATE_CMD
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_S2_CORE_UPDATE_CTRL_UPDATE_ADDR
	movl	%eax, %ebx
	movq	_VCAP_SEL_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_2
## %bb.1:
	movq	_vcap_is2@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jg	LBB0_2
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	orl	%r13d, %ebx
	movq	_S2_CORE_UPDATE_CTRL_UPDATE_SHOT@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	xorl	%eax, %eax
	movl	$0, %edx
	testl	%r15d, %ecx
	jne	LBB0_4
## %bb.3:
	movq	_S2_CORE_UPDATE_CTRL_UPDATE_ENTRY_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	orl	%edx, %ebx
	movq	_VCAP_SEL_ACTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$0, %ecx
	andl	%r15d, %edx
	jne	LBB0_6
## %bb.5:
	movq	_S2_CORE_UPDATE_CTRL_UPDATE_ACTION_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	%ecx, %ebx
	movq	_VCAP_SEL_COUNTER@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	jne	LBB0_8
## %bb.7:
	movq	_S2_CORE_UPDATE_CTRL_UPDATE_CNT_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%eax, %ebx
	movq	_S2_CORE_UPDATE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ocelot_write
	movq	_vcap_s2_read_update_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ecx, %ecx
	movl	(%r12), %eax
	andl	%ebx, %eax
	sete	%cl
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	$10, %r8d
	movl	$100000, %r9d                   ## imm = 0x186A0
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readx_poll_timeout             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S2_CORE_UPDATE_CTRL_UPDATE_SHOT,4,2 ## @S2_CORE_UPDATE_CTRL_UPDATE_SHOT
	.comm	_VCAP_SEL_ENTRY,4,2             ## @VCAP_SEL_ENTRY
	.comm	_vcap_is2,8,3                   ## @vcap_is2
	.comm	_S2_CORE_UPDATE_CTRL_UPDATE_ENTRY_DIS,4,2 ## @S2_CORE_UPDATE_CTRL_UPDATE_ENTRY_DIS
	.comm	_VCAP_SEL_ACTION,4,2            ## @VCAP_SEL_ACTION
	.comm	_S2_CORE_UPDATE_CTRL_UPDATE_ACTION_DIS,4,2 ## @S2_CORE_UPDATE_CTRL_UPDATE_ACTION_DIS
	.comm	_VCAP_SEL_COUNTER,4,2           ## @VCAP_SEL_COUNTER
	.comm	_S2_CORE_UPDATE_CTRL_UPDATE_CNT_DIS,4,2 ## @S2_CORE_UPDATE_CTRL_UPDATE_CNT_DIS
	.comm	_S2_CORE_UPDATE_CTRL,4,2        ## @S2_CORE_UPDATE_CTRL
	.comm	_vcap_s2_read_update_ctrl,4,2   ## @vcap_s2_read_update_ctrl
	.no_dead_strip	_vcap_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcap_cmd
_vcap_cmd:                              ; @vcap_cmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x22, x1
	mov	x19, x0
	mov	x0, x2
	bl	_S2_CORE_UPDATE_CTRL_UPDATE_CMD
	mov	x21, x0
	mov	x0, x22
	bl	_S2_CORE_UPDATE_CTRL_UPDATE_ADDR
Lloh0:
	adrp	x8, _VCAP_SEL_ENTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCAP_SEL_ENTRY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh3:
	adrp	x9, _vcap_is2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vcap_is2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, x22, #0, ne
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x22, _S2_CORE_UPDATE_CTRL_UPDATE_SHOT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _S2_CORE_UPDATE_CTRL_UPDATE_SHOT@GOTPAGEOFF]
	orr	w9, w0, w21
	ldr	w10, [x22]
	orr	w9, w9, w10
Lloh8:
	adrp	x10, _S2_CORE_UPDATE_CTRL_UPDATE_ENTRY_DIS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _S2_CORE_UPDATE_CTRL_UPDATE_ENTRY_DIS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w8, #0
	csel	w8, w10, wzr, eq
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _VCAP_SEL_ACTION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VCAP_SEL_ACTION@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _S2_CORE_UPDATE_CTRL_UPDATE_ACTION_DIS@GOTPAGE
Lloh15:
	ldr	x10, [x10, _S2_CORE_UPDATE_CTRL_UPDATE_ACTION_DIS@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _VCAP_SEL_COUNTER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VCAP_SEL_COUNTER@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _S2_CORE_UPDATE_CTRL_UPDATE_CNT_DIS@GOTPAGE
Lloh21:
	ldr	x10, [x10, _S2_CORE_UPDATE_CTRL_UPDATE_CNT_DIS@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, w10, wzr, eq
	orr	w20, w8, w9
Lloh23:
	adrp	x8, _S2_CORE_UPDATE_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _S2_CORE_UPDATE_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ocelot_write
Lloh26:
	adrp	x8, _vcap_s2_read_update_ctrl@GOTPAGE
Lloh27:
	ldr	x8, [x8, _vcap_s2_read_update_ctrl@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	w8, [x22]
	tst	w8, w20
	cset	w3, eq
	mov	x1, x19
	mov	x2, x20
	mov	w4, #10
	mov	w5, #34464
	movk	w5, #1, lsl #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_readx_poll_timeout
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_S2_CORE_UPDATE_CTRL_UPDATE_SHOT,4,2 ; @S2_CORE_UPDATE_CTRL_UPDATE_SHOT
	.comm	_VCAP_SEL_ENTRY,4,2             ; @VCAP_SEL_ENTRY
	.comm	_vcap_is2,8,3                   ; @vcap_is2
	.comm	_S2_CORE_UPDATE_CTRL_UPDATE_ENTRY_DIS,4,2 ; @S2_CORE_UPDATE_CTRL_UPDATE_ENTRY_DIS
	.comm	_VCAP_SEL_ACTION,4,2            ; @VCAP_SEL_ACTION
	.comm	_S2_CORE_UPDATE_CTRL_UPDATE_ACTION_DIS,4,2 ; @S2_CORE_UPDATE_CTRL_UPDATE_ACTION_DIS
	.comm	_VCAP_SEL_COUNTER,4,2           ; @VCAP_SEL_COUNTER
	.comm	_S2_CORE_UPDATE_CTRL_UPDATE_CNT_DIS,4,2 ; @S2_CORE_UPDATE_CTRL_UPDATE_CNT_DIS
	.comm	_S2_CORE_UPDATE_CTRL,4,2        ; @S2_CORE_UPDATE_CTRL
	.comm	_vcap_s2_read_update_ctrl,4,2   ; @vcap_s2_read_update_ctrl
	.no_dead_strip	_vcap_cmd
.subsections_via_symbols
