	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svp_bh_control_cb
_svp_bh_control_cb:                     ## @svp_bh_control_cb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rdi), %r14
	movl	(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.2:
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_TRACE
	movq	_SVP_STOP_EOS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movl	(%rdi), %r15d
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_mmal_status_to_string
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_LOG_ERROR
	movq	_SVP_STOP_ERROR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_svp_set_stop
	jmp	LBB0_6
LBB0_5:
	movl	(%rdi), %esi
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_LOG_TRACE
LBB0_6:
	movq	%rbx, %rdi
	callq	_mmal_buffer_header_release
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_semaphore_post            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: EOS"

	.comm	_SVP_STOP_EOS,4,2               ## @SVP_STOP_EOS
L_.str.1:                               ## @.str.1
	.asciz	"%s: MMAL error: %s"

	.comm	_SVP_STOP_ERROR,4,2             ## @SVP_STOP_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"%s: buf %p, event %4.4s"

	.no_dead_strip	_svp_bh_control_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svp_bh_control_cb
_svp_bh_control_cb:                     ; @svp_bh_control_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	ldr	x19, [x0, #8]
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.2:
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_TRACE
Lloh2:
	adrp	x8, _SVP_STOP_EOS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SVP_STOP_EOS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w21, [x0]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_mmal_status_to_string
	mov	x2, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_LOG_ERROR
Lloh6:
	adrp	x8, _SVP_STOP_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SVP_STOP_ERROR@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_svp_set_stop
	b	LBB0_6
LBB0_5:
	ldr	w1, [x0]
	stp	x20, x20, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_TRACE
LBB0_6:
	mov	x0, x20
	bl	_mmal_buffer_header_release
	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
	add	sp, sp, #64
	b	_vcos_semaphore_post
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: EOS"

	.comm	_SVP_STOP_EOS,4,2               ; @SVP_STOP_EOS
l_.str.1:                               ; @.str.1
	.asciz	"%s: MMAL error: %s"

	.comm	_SVP_STOP_ERROR,4,2             ; @SVP_STOP_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"%s: buf %p, event %4.4s"

	.no_dead_strip	_svp_bh_control_cb
.subsections_via_symbols
