	.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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_video_info
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	cmpl	$0, -32(%rbp)
	je	LBB0_3
## %bb.4:
	movl	-40(%rbp), %eax
	movl	%eax, (%r15)
	movl	-36(%rbp), %ecx
	jmp	LBB0_6
LBB0_5:
	movl	(%r14), %eax
	movl	%eax, (%r15)
	movl	8(%r14), %ecx
LBB0_6:
	movl	%ecx, 32(%r15)
	movq	_V4L2_PIX_FMT_MPEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r15)
	movl	4(%r14), %ecx
	movl	%ecx, 24(%r15)
	movq	$0, 16(%r15)
	cmpl	$720, %eax                      ## imm = 0x2D0
	jne	LBB0_8
## %bb.7:
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_V4L2_COLORSPACE_REC709@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_V4L2_PIX_FMT_MPEG,4,2          ## @V4L2_PIX_FMT_MPEG
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_COLORSPACE_REC709,4,2     ## @V4L2_COLORSPACE_REC709
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.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:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_video_drvdata
	mov	x20, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x1, sp
	mov	x0, x20
	bl	_get_video_info
	tbnz	w0, #31, LBB0_10
; %bb.2:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_9
; %bb.3:
	ldp	w8, w9, [sp]
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x20]
	str	w8, [x19]
	ldr	w9, [x20, #8]
LBB0_5:
	str	w9, [x19, #32]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_MPEG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_MPEG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x20, #4]
	stp	w10, w9, [x19, #24]
	str	xzr, [x19, #16]
	cmp	w8, #720
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
Lloh3:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
Lloh8:
	adrp	x8, _V4L2_COLORSPACE_REC709@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_COLORSPACE_REC709@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _EFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_V4L2_PIX_FMT_MPEG,4,2          ; @V4L2_PIX_FMT_MPEG
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_COLORSPACE_REC709,4,2     ; @V4L2_COLORSPACE_REC709
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_vidioc_g_fmt_vid_cap
.subsections_via_symbols
