	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_gpuserv_execute_code        ## -- Begin function vc_gpuserv_execute_code
	.p2align	4, 0x90
_vc_gpuserv_execute_code:               ## @vc_gpuserv_execute_code
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_JOBS@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_gpuserv_client@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_vc_gpuserv_init
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_error
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_14
## %bb.2:
	movl	(%r12), %ebx
LBB0_3:
	movl	$-1, %eax
	cmpl	%r13d, %ebx
	jl	LBB0_12
## %bb.4:
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.5:
	movl	%r13d, %r8d
	cmpl	$1, %r13d
	jne	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_14:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_vcos_log_error
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_7:
	movl	%r8d, %edx
	andl	$-2, %edx
	movq	%r15, %rsi
	addq	$24, %rsi
	xorl	%ecx, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -16(%rsi)
	movl	$4, -24(%rsi)
	leaq	4(%rbx), %rax
	movq	%rax, (%rsi)
	movl	$4, -8(%rsi)
	addq	$2, %rcx
	addq	$8, %rbx
	addq	$32, %rsi
	cmpq	%rcx, %rdx
	jne	LBB0_8
LBB0_9:
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	shlq	$4, %rcx
	movq	%rax, 8(%r15,%rcx)
	movl	$4, (%r15,%rcx)
LBB0_11:
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_vchiq_queue_message
	movq	%rax, %rcx
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	setne	%al
	negl	%eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_JOBS,4,2                   ## @MAX_JOBS
	.comm	_gpuserv_client,4,2             ## @gpuserv_client
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: called without calling vc_gpuserv_init"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
L_.str.1:                               ## @.str.1
	.asciz	"%s: vchiq service not initialised"

	.comm	_VCHIQ_SUCCESS,8,3              ## @VCHIQ_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_gpuserv_execute_code        ; -- Begin function vc_gpuserv_execute_code
	.p2align	2
_vc_gpuserv_execute_code:               ; @vc_gpuserv_execute_code
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _MAX_JOBS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_JOBS@GOTPAGEOFF]
	ldr	w12, [x22]
	lsl	x8, x12, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x23, _gpuserv_client@GOTPAGE
Lloh8:
	ldr	x23, [x23, _gpuserv_client@GOTPAGEOFF]
	ldr	w0, [x23]
	cbz	w0, LBB0_3
; %bb.1:
	cmp	w12, w19
	b.ge	LBB0_5
LBB0_2:
	mov	w0, #-1
	b	LBB0_15
LBB0_3:
	bl	_vc_gpuserv_init
Lloh9:
	adrp	x24, _VCOS_FUNCTION@GOTPAGE
Lloh10:
	ldr	x24, [x24, _VCOS_FUNCTION@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_error
	ldr	w0, [x23]
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w12, [x22]
	cmp	w12, w19
	b.lt	LBB0_2
LBB0_5:
	cmp	w19, #1
	b.lt	LBB0_14
; %bb.6:
	mov	w8, w19
	cmp	w19, #4
	b.hs	LBB0_9
; %bb.7:
	mov	x9, #0
	b	LBB0_12
LBB0_8:
	ldr	w1, [x24]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vcos_log_error
	mov	w0, #-1
	b	LBB0_15
LBB0_9:
	and	x9, x8, #0xfffffffc
	add	x10, x20, #32
	mov	w11, #4
	mov	x12, x9
	mov	x13, x21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x14, x13, #4
	stur	x13, [x10, #-24]
	add	x15, x13, #8
	add	x16, x13, #12
	stur	x14, [x10, #-8]
	str	x15, [x10, #8]
	str	x16, [x10, #24]
	stur	w11, [x10, #-32]
	stur	w11, [x10, #-16]
	add	x13, x13, #16
	str	w11, [x10]
	str	w11, [x10, #16]
	add	x10, x10, #64
	subs	x12, x12, #4
	b.ne	LBB0_10
; %bb.11:
	cmp	x9, x8
	b.eq	LBB0_14
LBB0_12:
	add	x10, x21, x9, lsl #2
	add	x11, x20, x9, lsl #4
	add	x11, x11, #8
	sub	x8, x8, x9
	mov	w9, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	str	x10, [x11]
	stur	w9, [x11, #-8]
	add	x10, x10, #4
	add	x11, x11, #16
	subs	x8, x8, #1
	b.ne	LBB0_13
LBB0_14:
	mov	x1, x20
	mov	x2, x19
	bl	_vchiq_queue_message
Lloh15:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	csetm	w0, ne
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #48
	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
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_JOBS,4,2                   ; @MAX_JOBS
	.comm	_gpuserv_client,4,2             ; @gpuserv_client
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: called without calling vc_gpuserv_init"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
l_.str.1:                               ; @.str.1
	.asciz	"%s: vchiq service not initialised"

	.comm	_VCHIQ_SUCCESS,8,3              ; @VCHIQ_SUCCESS
.subsections_via_symbols
