	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_vc_do_callback
_mmal_vc_do_callback:                   ## @mmal_vc_do_callback
	.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	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movq	_MMAL_BUFFER_HEADER_FLAG_TRANSMISSION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movl	8(%r14), %edi
	movq	_MMAL_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmal_event_error_send
LBB0_3:
	movq	%rbx, %rdi
	callq	_mmal_buffer_header_driver_data
	movq	(%rax), %rax
	movq	(%r15), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movl	4(%rbx), %edi
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_mmal_vc_shm_lock
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmal_port_buffer_header_callback ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmal_port_event_send           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_BUFFER_HEADER_FLAG_TRANSMISSION_FAILED,4,2 ## @MMAL_BUFFER_HEADER_FLAG_TRANSMISSION_FAILED
	.comm	_MMAL_EIO,4,2                   ## @MMAL_EIO
	.no_dead_strip	_mmal_vc_do_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_vc_do_callback
_mmal_vc_do_callback:                   ; @mmal_vc_do_callback
	.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	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_mmal_queue_get
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MMAL_BUFFER_HEADER_FLAG_TRANSMISSION_FAILED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMAL_BUFFER_HEADER_FLAG_TRANSMISSION_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x8, _MMAL_EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_EIO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_mmal_event_error_send
LBB0_3:
	mov	x0, x19
	bl	_mmal_buffer_header_driver_data
	ldr	x8, [x0]
	ldr	x9, [x21]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x19, #4]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_mmal_vc_shm_lock
	str	w0, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	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
	b	_mmal_port_buffer_header_callback
LBB0_5:
	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_6:
	mov	x0, x20
	mov	x1, x19
	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
	b	_mmal_port_event_send
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_BUFFER_HEADER_FLAG_TRANSMISSION_FAILED,4,2 ; @MMAL_BUFFER_HEADER_FLAG_TRANSMISSION_FAILED
	.comm	_MMAL_EIO,4,2                   ; @MMAL_EIO
	.no_dead_strip	_mmal_vc_do_callback
.subsections_via_symbols
