	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_fmt_vid_cap
_vidioc_g_fmt_vid_cap:                  ## @vidioc_g_fmt_vid_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rdx)
	movl	4(%rax), %r8d
	movl	%r8d, 4(%rdx)
	movq	24(%rax), %rdi
	movl	4(%rdi), %esi
	movl	%esi, 24(%rdx)
	imull	(%rdi), %ecx
	addl	$7, %ecx
	sarl	$3, %ecx
	movl	%ecx, 8(%rdx)
	imull	%r8d, %ecx
	movl	%ecx, 12(%rdx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rdx)
	cmpq	$0, 16(%rax)
	je	LBB0_2
## %bb.1:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, 8(%rax)
	jne	LBB0_3
## %bb.4:
	movq	_V4L2_FIELD_TOP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 16(%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_FIELD_TOP,4,2             ## @V4L2_FIELD_TOP
	.no_dead_strip	_vidioc_g_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_g_fmt_vid_cap
_vidioc_g_fmt_vid_cap:                  ; @vidioc_g_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	ldp	w9, w10, [x8]
	ldp	x12, x11, [x8, #16]
	ldp	w11, w13, [x11]
	orr	w14, wzr, #0x7
	madd	w11, w11, w9, w14
	stp	w9, w10, [x2]
	asr	w9, w11, #3
	mul	w10, w9, w10
	stp	w9, w10, [x2, #8]
Lloh0:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w13, [x2, #20]
	cbz	x12, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
	ldr	x8, [x8, #8]
Lloh7:
	adrp	x10, _V4L2_FIELD_TOP@GOTPAGE
Lloh8:
	ldr	x10, [x10, _V4L2_FIELD_TOP@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x2, #16]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_FIELD_TOP,4,2             ; @V4L2_FIELD_TOP
	.no_dead_strip	_vidioc_g_fmt_vid_cap
.subsections_via_symbols
