	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_gencmd_until                ## -- Begin function vc_gencmd_until
	.p2align	4, 0x90
_vc_gencmd_until:                       ## @vc_gencmd_until
	.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
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r15
	movq	%rdx, -192(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_use_gencmd_service
	movl	$1, %r12d
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.1:
	addl	$10, %ebx
	leaq	-176(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_vcos_sleep
	addl	$-10, %ebx
	cmpl	$10, %ebx
	jle	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$128, %esi
	movq	%r14, %rdx
	callq	_vc_gencmd
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	leaq	-200(%rbp), %rdx
	leaq	-180(%rbp), %rcx
	callq	_vc_gencmd_string_property
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-200(%rbp), %rsi
	movslq	-180(%rbp), %rdx
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_7:
	movl	$1, %r12d
LBB0_8:
	xorl	%eax, %eax
	callq	_release_gencmd_service
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r12d, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_gencmd_until                ; -- Begin function vc_gencmd_until
	.p2align	2
_vc_gencmd_until:                       ; @vc_gencmd_until
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_use_gencmd_service
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.1:
	add	w23, w23, #10
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	bl	_vcos_sleep
	sub	w23, w23, #10
	cmp	w23, #10
	b.le	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	w1, #128
	mov	x2, x22
	bl	_vc_gencmd
	add	x0, sp, #24
	mov	x1, x19
	bl	_strstr
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #24
	add	x2, sp, #8
	add	x3, sp, #20
	mov	x1, x21
	bl	_vc_gencmd_string_property
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #8]
	ldrsw	x2, [sp, #20]
	mov	x0, x20
	bl	_strncmp
	cbnz	x0, LBB0_2
; %bb.6:
	mov	w19, #0
	b	LBB0_8
LBB0_7:
	mov	w19, #1
LBB0_8:
	bl	_release_gencmd_service
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
