	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_capture_data_from_header
_update_capture_data_from_header:       ## @update_capture_data_from_header
	.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	%rdi, %rbx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_q_data
	movq	%rax, %r14
	leaq	32(%rbx), %rdi
	callq	_info_from_header
	movq	%rax, %r13
	movl	56(%rbx), %edi
	callq	_ntohl
	movq	_FWHT_FL_CHROMA_FULL_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	xorl	%r15d, %r15d
	cmpl	$1, %ecx
	movl	$0, %r12d
	adcl	$1, %r12d
	movq	_FWHT_FL_CHROMA_FULL_HEIGHT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	adcl	$1, %r15d
	movl	64(%rbx), %edi
	callq	_WARN_ON
	movq	%r13, 16(%r14)
	movl	52(%rbx), %edi
	callq	_ntohl
	movq	%rax, 32(%r14)
	movl	48(%rbx), %edi
	callq	_ntohl
	movq	%rax, 24(%r14)
	movq	32(%r14), %rdi
	movl	%r12d, %esi
	callq	_vic_round_dim
	movl	%eax, (%r14)
	movq	24(%r14), %rdi
	movl	%r15d, %esi
	callq	_vic_round_dim
	movl	%eax, 4(%r14)
	imull	(%r14), %eax
	movq	16(%r14), %rcx
	imull	(%rcx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	4(%rcx)
	movl	%eax, 8(%r14)
	movl	44(%rbx), %edi
	callq	_ntohl
	movq	%rax, 24(%rbx)
	movl	40(%rbx), %edi
	callq	_ntohl
	movq	%rax, 16(%rbx)
	movl	36(%rbx), %edi
	callq	_ntohl
	movq	%rax, 8(%rbx)
	movl	32(%rbx), %edi
	callq	_ntohl
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_FWHT_FL_CHROMA_FULL_WIDTH,4,2  ## @FWHT_FL_CHROMA_FULL_WIDTH
	.comm	_FWHT_FL_CHROMA_FULL_HEIGHT,4,2 ## @FWHT_FL_CHROMA_FULL_HEIGHT
	.no_dead_strip	_update_capture_data_from_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_capture_data_from_header
_update_capture_data_from_header:       ; @update_capture_data_from_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_get_q_data
	mov	x20, x0
	add	x0, x19, #32
	bl	_info_from_header
	mov	x21, x0
	ldr	w0, [x19, #56]
	bl	_ntohl
Lloh3:
	adrp	x8, _FWHT_FL_CHROMA_FULL_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FWHT_FL_CHROMA_FULL_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #1
	cinc	w22, w8, eq
Lloh6:
	adrp	x9, _FWHT_FL_CHROMA_FULL_HEIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FWHT_FL_CHROMA_FULL_HEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w0
	cinc	w23, w8, eq
	ldr	w0, [x19, #64]
	bl	_WARN_ON
	str	x21, [x20, #16]
	ldr	w0, [x19, #52]
	bl	_ntohl
	str	x0, [x20, #32]
	ldr	w0, [x19, #48]
	bl	_ntohl
	str	x0, [x20, #24]
	ldr	x0, [x20, #32]
	mov	x1, x22
	bl	_vic_round_dim
	str	w0, [x20]
	ldr	x0, [x20, #24]
	mov	x1, x23
	bl	_vic_round_dim
	ldr	w8, [x20]
	mul	w8, w8, w0
	ldr	x9, [x20, #16]
	ldp	w10, w9, [x9]
	mul	w8, w8, w10
	sdiv	w8, w8, w9
	stp	w0, w8, [x20, #4]
	ldr	w0, [x19, #44]
	bl	_ntohl
	str	x0, [x19, #24]
	ldr	w0, [x19, #40]
	bl	_ntohl
	str	x0, [x19, #16]
	ldr	w0, [x19, #36]
	bl	_ntohl
	str	x0, [x19, #8]
	ldr	w0, [x19, #32]
	bl	_ntohl
	str	x0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_FWHT_FL_CHROMA_FULL_WIDTH,4,2  ; @FWHT_FL_CHROMA_FULL_WIDTH
	.comm	_FWHT_FL_CHROMA_FULL_HEIGHT,4,2 ; @FWHT_FL_CHROMA_FULL_HEIGHT
	.no_dead_strip	_update_capture_data_from_header
.subsections_via_symbols
