	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_gencmd_send_list            ## -- Begin function vc_gencmd_send_list
	.p2align	4, 0x90
_vc_gencmd_send_list:                   ## @vc_gencmd_send_list
	.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	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_lock_obtain
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	_gencmd_client@GOTPCREL(%rip), %r12
	movl	4(%r12), %edi
	movq	_GENCMD_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_vsnprintf
	movl	$-1, %r14d
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movl	%eax, %r13d
	movq	_GENCMD_MAX_LENGTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_10
## %bb.3:
	xorl	%eax, %eax
	callq	_use_gencmd_service
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.7:
	incl	%r13d
	xorl	%r14d, %r14d
	movq	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	4(%r12), %esi
	movl	(%r15), %ecx
	movl	%r13d, %edx
	xorl	%r8d, %r8d
	callq	_vchi_msg_queue
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	(%r12), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_8
## %bb.6:
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_4:
	movl	$-1, %r14d
LBB0_9:
	xorl	%eax, %eax
	callq	_release_gencmd_service
LBB0_10:
	xorl	%eax, %eax
	callq	_lock_release
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gencmd_client,16,3             ## @gencmd_client
	.comm	_GENCMD_MAX_LENGTH,4,2          ## @GENCMD_MAX_LENGTH
	.comm	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED,4,2 ## @VCHI_FLAGS_BLOCK_UNTIL_QUEUED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_gencmd_send_list            ; -- Begin function vc_gencmd_send_list
	.p2align	2
_vc_gencmd_send_list:                   ; @vc_gencmd_send_list
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_lock_obtain
	cbz	x0, LBB0_2
; %bb.1:
	mov	w19, #-1
	b	LBB0_11
LBB0_2:
Lloh0:
	adrp	x21, _gencmd_client@GOTPAGE
Lloh1:
	ldr	x21, [x21, _gencmd_client@GOTPAGEOFF]
	ldr	w0, [x21, #4]
Lloh2:
	adrp	x22, _GENCMD_MAX_LENGTH@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GENCMD_MAX_LENGTH@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, x20
	mov	x3, x19
	bl	_vsnprintf
	mov	w19, #-1
	tbnz	w0, #31, LBB0_10
; %bb.3:
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_10
; %bb.4:
	bl	_use_gencmd_service
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x22, #0
	add	w20, w20, #1
Lloh4:
	adrp	x23, _VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x21, #4]
	ldr	w3, [x23]
	mov	x2, x20
	mov	x4, #0
	bl	_vchi_msg_queue
	mov	x19, x0
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	w19, #-1
LBB0_9:
	bl	_release_gencmd_service
LBB0_10:
	bl	_lock_release
LBB0_11:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_gencmd_client,16,3             ; @gencmd_client
	.comm	_GENCMD_MAX_LENGTH,4,2          ; @GENCMD_MAX_LENGTH
	.comm	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED,4,2 ; @VCHI_FLAGS_BLOCK_UNTIL_QUEUED
.subsections_via_symbols
