	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalil_buffer_header_to_mmal   ## -- Begin function mmalil_buffer_header_to_mmal
	.p2align	4, 0x90
_mmalil_buffer_header_to_mmal:          ## @mmalil_buffer_header_to_mmal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, 40(%rdi)
	movups	8(%rsi), %xmm0
	movups	%xmm0, 24(%rdi)
	movl	(%rsi), %ecx
	movq	_OMX_BUFFERFLAG_TIME_IS_DTS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	callq	_omx_ticks_to_s64
	movq	%rax, 16(%rbx)
	movq	_MMAL_TIME_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_OMX_BUFFERFLAG_TIME_UNKNOWN@GOTPCREL(%rip), %rdx
	movq	_MMAL_TIME_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	(%rdx), %ecx
	movq	%rax, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	movl	4(%r14), %edi
	callq	_omx_ticks_to_s64
LBB0_4:
	movq	%rax, 8(%rbx)
	movl	(%r14), %edi
	callq	_mmalil_buffer_flags_to_mmal
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_BUFFERFLAG_TIME_IS_DTS,4,2 ## @OMX_BUFFERFLAG_TIME_IS_DTS
	.comm	_MMAL_TIME_UNKNOWN,8,3          ## @MMAL_TIME_UNKNOWN
	.comm	_OMX_BUFFERFLAG_TIME_UNKNOWN,4,2 ## @OMX_BUFFERFLAG_TIME_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalil_buffer_header_to_mmal   ; -- Begin function mmalil_buffer_header_to_mmal
	.p2align	2
_mmalil_buffer_header_to_mmal:          ; @mmalil_buffer_header_to_mmal
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	str	xzr, [x0, #40]
	ldur	q0, [x1, #8]
	stur	q0, [x0, #24]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _OMX_BUFFERFLAG_TIME_IS_DTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMX_BUFFERFLAG_TIME_IS_DTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_omx_ticks_to_s64
	str	x0, [x19, #16]
Lloh3:
	adrp	x8, _MMAL_TIME_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_TIME_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x9, _OMX_BUFFERFLAG_TIME_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OMX_BUFFERFLAG_TIME_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MMAL_TIME_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MMAL_TIME_UNKNOWN@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x10]
	str	x0, [x19, #16]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20, #4]
	bl	_omx_ticks_to_s64
LBB0_4:
	str	x0, [x19, #8]
	ldr	w0, [x20]
	bl	_mmalil_buffer_flags_to_mmal
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_BUFFERFLAG_TIME_IS_DTS,4,2 ; @OMX_BUFFERFLAG_TIME_IS_DTS
	.comm	_MMAL_TIME_UNKNOWN,8,3          ; @MMAL_TIME_UNKNOWN
	.comm	_OMX_BUFFERFLAG_TIME_UNKNOWN,4,2 ; @OMX_BUFFERFLAG_TIME_UNKNOWN
.subsections_via_symbols
