	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp514x_set_pad_format
_tvp514x_set_pad_format:                ## @tvp514x_set_pad_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_to_decoder
	movq	(%rbx), %rcx
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.2:
	movq	16(%rbx), %rcx
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movq	24(%rbx), %rsi
	movq	_tvp514x_std_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rdx
	shlq	$4, %rdx
	cmpq	(%rcx,%rdx), %rsi
	jne	LBB0_5
## %bb.4:
	movq	32(%rbx), %rsi
	cmpq	8(%rcx,%rdx), %rsi
	jne	LBB0_5
## %bb.6:
	movq	32(%rbx), %rcx
	movq	%rcx, 40(%rax)
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	%xmm1, 24(%rax)
	movups	%xmm0, 8(%rax)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_INTERLACED,8,3      ## @V4L2_FIELD_INTERLACED
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,8,3    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,8,3  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_tvp514x_std_list,8,3           ## @tvp514x_std_list
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tvp514x_set_pad_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp514x_set_pad_format
_tvp514x_set_pad_format:                ; @tvp514x_set_pad_format
	.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	x19, x2
	bl	_to_decoder
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x10, [x19, #24]
Lloh9:
	adrp	x8, _tvp514x_std_list@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tvp514x_std_list@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x0]
	lsl	x11, x9, #4
	ldr	x11, [x8, x11]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.4:
	ldr	x10, [x19, #32]
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	cmp	x10, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #0
	ldp	q0, q1, [x19]
	ldr	x9, [x19, #32]
	str	x9, [x0, #40]
	stur	q1, [x0, #24]
	stur	q0, [x0, #8]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_7:
	mov	x0, x8
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_INTERLACED,8,3      ; @V4L2_FIELD_INTERLACED
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,8,3    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,8,3  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_tvp514x_std_list,8,3           ; @tvp514x_std_list
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tvp514x_set_pad_format
.subsections_via_symbols
