	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_port_clock_process_buffer
_mmal_port_clock_process_buffer:        ## @mmal_port_clock_process_buffer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	_MMAL_CLOCK_EVENT_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdi
	callq	_MMAL_CLOCK_EVENT_INIT
	movl	(%r15), %esi
	cmpl	$48, %esi
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_mmal_buffer_header_mem_lock
	movl	4(%r15), %esi
	leaq	-88(%rbp), %rdi
	movl	$48, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_mmal_buffer_header_mem_unlock
	movq	-88(%rbp), %rax
	movq	_MMAL_CLOCK_EVENT_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movl	(%r14), %esi
	leaq	-80(%rbp), %rdx
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG_TRACE
	movl	-80(%rbp), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_9
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	8(%r12), %edi
	leaq	-56(%rbp), %rsi
	callq	_mmal_clock_update_threshold_set
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	$48, %edx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	leaq	-88(%rbp), %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movl	$0, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mmal_port_buffer_header_callback
LBB0_7:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_8:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	leaq	-80(%rbp), %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_16
LBB0_10:
	movl	8(%r12), %edi
	movl	-48(%rbp), %esi
	callq	_mmal_clock_media_time_set
	jmp	LBB0_15
LBB0_11:
	movl	8(%r12), %edi
	movl	-52(%rbp), %esi
	callq	_mmal_clock_scale_set
	jmp	LBB0_15
LBB0_12:
	movl	8(%r12), %edi
	leaq	-64(%rbp), %rsi
	callq	_mmal_clock_request_threshold_set
	jmp	LBB0_15
LBB0_13:
	movl	8(%r12), %edi
	leaq	-60(%rbp), %rsi
	callq	_mmal_clock_discont_threshold_set
	jmp	LBB0_15
LBB0_14:
	movl	8(%r12), %edi
	movl	-44(%rbp), %esi
	callq	_mmal_clock_active_set
LBB0_15:
	movq	%rax, %rbx
LBB0_16:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	cmpq	(%r13), %rbx
	jne	LBB0_19
## %bb.18:
	movq	%r15, -72(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	callq	*%rax
	jmp	LBB0_8
LBB0_19:
	movl	$0, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mmal_port_buffer_header_callback
	jmp	LBB0_8
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_CLOCK_EVENT_INVALID,4,2   ## @MMAL_CLOCK_EVENT_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid buffer length %d expected %d"

	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.comm	_MMAL_CLOCK_EVENT_MAGIC,8,3     ## @MMAL_CLOCK_EVENT_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"buffer corrupt (magic %4.4s)"

L_.str.2:                               ## @.str.2
	.asciz	"port %s id %4.4s"

L_.str.3:                               ## @.str.3
	.asciz	"invalid event %4.4s"

	.no_dead_strip	_mmal_port_clock_process_buffer
.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_process_buffer
_mmal_port_clock_process_buffer:        ; @mmal_port_clock_process_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x23, [x8]
Lloh0:
	adrp	x24, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x21, [x24]
Lloh2:
	adrp	x8, _MMAL_CLOCK_EVENT_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_CLOCK_EVENT_INVALID@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x8, sp, #16
	bl	_MMAL_CLOCK_EVENT_INIT
	ldr	w8, [x20]
	cmp	w8, #48
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_mmal_buffer_header_mem_lock
	ldr	w1, [x20, #4]
	add	x22, sp, #16
	add	x0, sp, #16
	mov	w2, #48
	bl	_memcpy
	mov	x0, x20
	bl	_mmal_buffer_header_mem_unlock
	ldr	x8, [sp, #16]
Lloh5:
	adrp	x9, _MMAL_CLOCK_EVENT_MAGIC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMAL_CLOCK_EVENT_MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w1, [x19]
	add	x22, x22, #8
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_LOG_TRACE
	ldr	w8, [sp, #24]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_9
; %bb.3:
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w0, [x23, #8]
	add	x8, sp, #16
	add	x1, x8, #32
	bl	_mmal_clock_update_threshold_set
	b	LBB0_15
LBB0_5:
	mov	w9, #48
	stp	x8, x9, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	b	LBB0_7
LBB0_6:
	str	x22, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	str	wzr, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_mmal_port_buffer_header_callback
LBB0_7:
Lloh16:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	x21, [x8]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	str	x22, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LOG_ERROR
Lloh21:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	x21, [x8]
	b	LBB0_16
LBB0_10:
	ldr	w0, [x23, #8]
	ldr	w1, [sp, #56]
	bl	_mmal_clock_media_time_set
	b	LBB0_15
LBB0_11:
	ldr	w0, [x23, #8]
	ldr	w1, [sp, #52]
	bl	_mmal_clock_scale_set
	b	LBB0_15
LBB0_12:
	ldr	w0, [x23, #8]
	add	x8, sp, #16
	add	x1, x8, #24
	bl	_mmal_clock_request_threshold_set
	b	LBB0_15
LBB0_13:
	ldr	w0, [x23, #8]
	add	x8, sp, #16
	add	x1, x8, #28
	bl	_mmal_clock_discont_threshold_set
	b	LBB0_15
LBB0_14:
	ldr	w0, [x23, #8]
	ldr	w1, [sp, #60]
	bl	_mmal_clock_active_set
LBB0_15:
	mov	x21, x0
LBB0_16:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, #0
	ccmp	x21, x9, #0, ne
	b.eq	LBB0_18
; %bb.17:
	str	wzr, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_mmal_port_buffer_header_callback
	b	LBB0_8
LBB0_18:
	str	x20, [sp, #32]
	add	x1, sp, #16
	mov	x0, x19
	blr	x8
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_CLOCK_EVENT_INVALID,4,2   ; @MMAL_CLOCK_EVENT_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid buffer length %d expected %d"

	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.comm	_MMAL_CLOCK_EVENT_MAGIC,8,3     ; @MMAL_CLOCK_EVENT_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"buffer corrupt (magic %4.4s)"

l_.str.2:                               ; @.str.2
	.asciz	"port %s id %4.4s"

l_.str.3:                               ; @.str.3
	.asciz	"invalid event %4.4s"

	.no_dead_strip	_mmal_port_clock_process_buffer
.subsections_via_symbols
