	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svp_worker
_svp_worker:                            ## @svp_worker
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rbx
	callq	_svp_get_stop
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	%r14, %rdi
	callq	_svp_process_returned_bufs
	movq	%r14, %rdi
	callq	_svp_get_stop
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_LOG_TRACE
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	callq	*24(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r15
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_svp_process_returned_bufs
	movq	%r14, %rdi
	callq	_vcos_semaphore_wait
	movq	%r14, %rdi
	callq	_svp_get_stop
	testq	%rax, %rax
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mmal_port_send_buffer
	cmpq	(%r12), %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_LOG_ERROR
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send buffer to %s"

L_.str.1:                               ## @.str.1
	.asciz	"Worker thread exiting: stop=0x%x"

	.no_dead_strip	_svp_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svp_worker
_svp_worker:                            ; @svp_worker
	.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	x19, x0
	ldr	x20, [x0, #32]
	bl	_svp_get_stop
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_svp_process_returned_bufs
	mov	x0, x19
	bl	_svp_get_stop
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_LOG_TRACE
	ldr	x8, [x19, #24]
	ldr	w0, [x19, #16]
	mov	x1, x20
	blr	x8
	mov	x0, #0
	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
LBB0_2:
Lloh2:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_svp_process_returned_bufs
	mov	x0, x19
	bl	_vcos_semaphore_wait
	mov	x0, x19
	bl	_svp_get_stop
	cbnz	x0, LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	mov	x1, x0
	cbz	x0, LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_mmal_port_send_buffer
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w1, [x20]
	mov	x0, x21
	bl	_LOG_ERROR
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send buffer to %s"

l_.str.1:                               ; @.str.1
	.asciz	"Worker thread exiting: stop=0x%x"

	.no_dead_strip	_svp_worker
.subsections_via_symbols
