	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_port_clock_forward_event
_mmal_port_clock_forward_event:         ## @mmal_port_clock_forward_event
	.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	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mmal_buffer_header_mem_lock
	movq	%rax, %r14
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_3
## %bb.4:
	movl	$4, (%rbx)
	movl	4(%rbx), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_mmal_buffer_header_mem_unlock
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mmal_port_buffer_header_callback
	jmp	LBB0_5
LBB0_1:
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rdx
	callq	_LOG_INFO
	movq	_MMAL_ENOSPC@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	_mmal_status_to_string
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_LOG_ERROR
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_mmal_queue_put_back
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: no free event buffers available for event %4.4s"

	.comm	_MMAL_ENOSPC,8,3                ## @MMAL_ENOSPC
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"failed to lock buffer %s"

	.no_dead_strip	_mmal_port_clock_forward_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_port_clock_forward_event
_mmal_port_clock_forward_event:         ; @mmal_port_clock_forward_event
	.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	x22, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_mmal_buffer_header_mem_lock
	mov	x19, x0
Lloh0:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	w8, #4
	str	w8, [x21]
	ldr	w0, [x21, #4]
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	mov	x0, x21
	bl	_mmal_buffer_header_mem_unlock
	mov	x0, x20
	mov	x1, x21
	bl	_mmal_port_buffer_header_callback
	b	LBB0_5
LBB0_3:
	ldr	w1, [x20, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	bl	_LOG_INFO
Lloh5:
	adrp	x8, _MMAL_ENOSPC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_ENOSPC@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_mmal_status_to_string
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_mmal_queue_put_back
LBB0_5:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: no free event buffers available for event %4.4s"

	.comm	_MMAL_ENOSPC,8,3                ; @MMAL_ENOSPC
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"failed to lock buffer %s"

	.no_dead_strip	_mmal_port_clock_forward_event
.subsections_via_symbols
