	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hva_s_fmt_frame
_hva_s_fmt_frame:                       ## @hva_s_fmt_frame
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_fh_to_ctx
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ctx_to_dev
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_hva_try_fmt_frame
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	64(%r14), %edx
	addq	$16, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_5
LBB0_2:
	movl	68(%r14), %edi
	movl	(%r12), %esi
	callq	_v4l2_m2m_get_vq
	movq	%rax, %rdi
	callq	_vb2_is_streaming
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	64(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movups	28(%r12), %xmm0
	movups	%xmm0, 48(%r14)
	movl	12(%r12), %edi
	movq	_HVA_WIDTH_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movq	%rax, 40(%r14)
	movl	8(%r12), %edi
	movq	_HVA_HEIGHT_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movq	%rax, 32(%r14)
	movl	24(%r12), %eax
	movl	%eax, 24(%r14)
	movq	16(%r12), %rax
	movq	%rax, 16(%r14)
	movl	12(%r12), %eax
	movl	%eax, 12(%r14)
	movl	8(%r12), %eax
	movl	%eax, 8(%r14)
	movq	_HVA_FLAG_FRAMEINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s V4L2 S_FMT (OUTPUT): unsupported format %.4s\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s V4L2 S_FMT (OUTPUT): queue busy\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_HVA_WIDTH_ALIGNMENT,4,2        ## @HVA_WIDTH_ALIGNMENT
	.comm	_HVA_HEIGHT_ALIGNMENT,4,2       ## @HVA_HEIGHT_ALIGNMENT
	.comm	_HVA_FLAG_FRAMEINFO,4,2         ## @HVA_FLAG_FRAMEINFO
	.no_dead_strip	_hva_s_fmt_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hva_s_fmt_frame
_hva_s_fmt_frame:                       ; @hva_s_fmt_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x1
	mov	x23, x0
	ldr	w0, [x0]
	bl	_fh_to_ctx
	mov	x20, x0
	bl	_ctx_to_dev
	mov	x22, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	bl	_hva_try_fmt_frame
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w2, [x20, #64]
	add	x8, x19, #16
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	b	LBB0_5
LBB0_2:
	ldr	w0, [x20, #68]
	ldr	w1, [x19]
	bl	_v4l2_m2m_get_vq
	bl	_vb2_is_streaming
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w2, [x20, #64]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	ldur	q0, [x19, #28]
	str	q0, [x20, #48]
	ldr	w0, [x19, #12]
Lloh7:
	adrp	x8, _HVA_WIDTH_ALIGNMENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HVA_WIDTH_ALIGNMENT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_ALIGN
	str	x0, [x20, #40]
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x8, _HVA_HEIGHT_ALIGNMENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HVA_HEIGHT_ALIGNMENT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	w21, #0
	str	x0, [x20, #32]
	ldr	w8, [x19, #24]
	str	w8, [x20, #24]
	ldr	x8, [x19, #16]
	str	x8, [x20, #16]
	ldr	d0, [x19, #8]
	str	d0, [x20, #8]
Lloh13:
	adrp	x8, _HVA_FLAG_FRAMEINFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HVA_FLAG_FRAMEINFO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s V4L2 S_FMT (OUTPUT): unsupported format %.4s\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s V4L2 S_FMT (OUTPUT): queue busy\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_HVA_WIDTH_ALIGNMENT,4,2        ; @HVA_WIDTH_ALIGNMENT
	.comm	_HVA_HEIGHT_ALIGNMENT,4,2       ; @HVA_HEIGHT_ALIGNMENT
	.comm	_HVA_FLAG_FRAMEINFO,4,2         ; @HVA_FLAG_FRAMEINFO
	.no_dead_strip	_hva_s_fmt_frame
.subsections_via_symbols
