	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp514x_get_pad_format
_tvp514x_get_pad_format:                ## @tvp514x_get_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
	cmpq	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	(%rbx), %rcx
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	24(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movups	8(%rax), %xmm0
	movups	%xmm0, 8(%rbx)
	jmp	LBB0_5
LBB0_4:
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movq	_tvp514x_std_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movl	4(%rcx,%rax,8), %edx
	movl	%edx, 20(%rbx)
	movl	(%rcx,%rax,8), %eax
	movl	%eax, 16(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_tvp514x_std_list,8,3           ## @tvp514x_std_list
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.no_dead_strip	_tvp514x_get_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_get_pad_format
_tvp514x_get_pad_format:                ; @tvp514x_get_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	x9, [x19, #32]
	cbz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x8, x0
	ldr	x9, [x19]
Lloh3:
	adrp	x10, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldur	q0, [x8, #8]
	ldr	w8, [x8, #24]
	str	w8, [x19, #24]
	stur	q0, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
Lloh6:
	adrp	x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x19, #24]
Lloh9:
	adrp	x9, _tvp514x_std_list@GOTPAGE
Lloh10:
	ldr	x9, [x9, _tvp514x_std_list@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x8, [x8]
	ldr	d0, [x9, x8, lsl #3]
	str	d0, [x19, #16]
Lloh12:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
LBB0_5:
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_tvp514x_std_list,8,3           ; @tvp514x_std_list
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.no_dead_strip	_tvp514x_get_pad_format
.subsections_via_symbols
