	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalil_buffer_header_to_omx    ## -- Begin function mmalil_buffer_header_to_omx
	.p2align	4, 0x90
_mmalil_buffer_header_to_omx:           ## @mmalil_buffer_header_to_omx
	.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, %rbx
	movq	%rdi, %r14
	movups	20(%rsi), %xmm0
	movups	%xmm0, 16(%rdi)
	movl	16(%rsi), %edi
	callq	_mmalil_buffer_flags_to_omx
	movl	%eax, (%r14)
	movq	(%rbx), %rdi
	callq	_omx_ticks_from_s64
	movq	%rax, 8(%r14)
	movq	(%rbx), %rax
	movq	_MMAL_TIME_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	cmovneq	%rcx, %rdi
	movq	_OMX_BUFFERFLAG_TIME_IS_DTS@GOTPCREL(%rip), %rbx
	cmoveq	_OMX_BUFFERFLAG_TIME_UNKNOWN@GOTPCREL(%rip), %rbx
	callq	_omx_ticks_from_s64
	movq	%rax, 8(%r14)
	movl	(%rbx), %eax
	orl	%eax, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_TIME_UNKNOWN,8,3          ## @MMAL_TIME_UNKNOWN
	.comm	_OMX_BUFFERFLAG_TIME_UNKNOWN,4,2 ## @OMX_BUFFERFLAG_TIME_UNKNOWN
	.comm	_OMX_BUFFERFLAG_TIME_IS_DTS,4,2 ## @OMX_BUFFERFLAG_TIME_IS_DTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalil_buffer_header_to_omx    ; -- Begin function mmalil_buffer_header_to_omx
	.p2align	2
_mmalil_buffer_header_to_omx:           ; @mmalil_buffer_header_to_omx
	.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
	ldur	q0, [x1, #20]
	str	q0, [x0, #16]
	ldr	w0, [x1, #16]
	bl	_mmalil_buffer_flags_to_omx
	str	w0, [x19]
	ldr	x0, [x20]
	bl	_omx_ticks_from_s64
	str	x0, [x19, #8]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _MMAL_TIME_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMAL_TIME_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	csel	x0, xzr, x9, eq
Lloh3:
	adrp	x8, _OMX_BUFFERFLAG_TIME_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMX_BUFFERFLAG_TIME_UNKNOWN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _OMX_BUFFERFLAG_TIME_IS_DTS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OMX_BUFFERFLAG_TIME_IS_DTS@GOTPAGEOFF]
	csel	x20, x8, x9, eq
	bl	_omx_ticks_from_s64
	str	x0, [x19, #8]
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_TIME_UNKNOWN,8,3          ; @MMAL_TIME_UNKNOWN
	.comm	_OMX_BUFFERFLAG_TIME_UNKNOWN,4,2 ; @OMX_BUFFERFLAG_TIME_UNKNOWN
	.comm	_OMX_BUFFERFLAG_TIME_IS_DTS,4,2 ; @OMX_BUFFERFLAG_TIME_IS_DTS
.subsections_via_symbols
