	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp5150_read_std
_tvp5150_read_std:                      ## @tvp5150_read_std
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TVP5150_STATUS_REG_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tvp5150_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$15, %eax
	decl	%eax
	cmpl	$10, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_V4L2_STD_PAL_M@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_V4L2_STD_PAL_N@GOTPCREL(%rip), %rcx
	movq	_V4L2_STD_PAL_Nc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_V4L2_STD_NTSC_443@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_TVP5150_STATUS_REG_5,4,2       ## @TVP5150_STATUS_REG_5
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_V4L2_STD_PAL_M,4,2             ## @V4L2_STD_PAL_M
	.comm	_V4L2_STD_PAL_N,4,2             ## @V4L2_STD_PAL_N
	.comm	_V4L2_STD_PAL_Nc,4,2            ## @V4L2_STD_PAL_Nc
	.comm	_V4L2_STD_NTSC_443,4,2          ## @V4L2_STD_NTSC_443
	.comm	_V4L2_STD_SECAM,4,2             ## @V4L2_STD_SECAM
	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.no_dead_strip	_tvp5150_read_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp5150_read_std
_tvp5150_read_std:                      ; @tvp5150_read_std
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TVP5150_STATUS_REG_5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVP5150_STATUS_REG_5@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tvp5150_read
	and	w8, w0, #0xf
	sub	w8, w8, #1
	cmp	w8, #10
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh7:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh9:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _V4L2_STD_PAL_M@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_STD_PAL_M@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _V4L2_STD_PAL_N@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_STD_PAL_N@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _V4L2_STD_PAL_Nc@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V4L2_STD_PAL_Nc@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh19:
	adrp	x8, _V4L2_STD_NTSC_443@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_STD_NTSC_443@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x8, _V4L2_STD_SECAM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V4L2_STD_SECAM@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_TVP5150_STATUS_REG_5,4,2       ; @TVP5150_STATUS_REG_5
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_V4L2_STD_PAL_M,4,2             ; @V4L2_STD_PAL_M
	.comm	_V4L2_STD_PAL_N,4,2             ; @V4L2_STD_PAL_N
	.comm	_V4L2_STD_PAL_Nc,4,2            ; @V4L2_STD_PAL_Nc
	.comm	_V4L2_STD_NTSC_443,4,2          ; @V4L2_STD_NTSC_443
	.comm	_V4L2_STD_SECAM,4,2             ; @V4L2_STD_SECAM
	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.no_dead_strip	_tvp5150_read_std
.subsections_via_symbols
