	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7180_std_to_v4l2
_adv7180_std_to_v4l2:                   ## @adv7180_std_to_v4l2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	movq	_ADV7180_STATUS1_IN_LOCK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_10
## %bb.1:
	movq	_ADV7180_STATUS1_AUTOD_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	addl	$-128, %edi
	cmpl	$7, %edi
	ja	LBB0_10
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_V4L2_STD_PAL_M@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_V4L2_STD_PAL_Nc@GOTPCREL(%rip), %rcx
	movq	_V4L2_STD_PAL_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_V4L2_STD_PAL_60@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_V4L2_STD_NTSC_443@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_ADV7180_STATUS1_IN_LOCK,4,2    ## @ADV7180_STATUS1_IN_LOCK
	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.comm	_ADV7180_STATUS1_AUTOD_MASK,4,2 ## @ADV7180_STATUS1_AUTOD_MASK
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_V4L2_STD_NTSC_443,4,2          ## @V4L2_STD_NTSC_443
	.comm	_V4L2_STD_PAL_M,4,2             ## @V4L2_STD_PAL_M
	.comm	_V4L2_STD_PAL_60,4,2            ## @V4L2_STD_PAL_60
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_V4L2_STD_SECAM,4,2             ## @V4L2_STD_SECAM
	.comm	_V4L2_STD_PAL_Nc,4,2            ## @V4L2_STD_PAL_Nc
	.comm	_V4L2_STD_PAL_N,4,2             ## @V4L2_STD_PAL_N
	.no_dead_strip	_adv7180_std_to_v4l2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7180_std_to_v4l2
_adv7180_std_to_v4l2:                   ; @adv7180_std_to_v4l2
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ADV7180_STATUS1_IN_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV7180_STATUS1_IN_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _ADV7180_STATUS1_AUTOD_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADV7180_STATUS1_AUTOD_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh8:
	adrp	x8, _V4L2_STD_SECAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_STD_SECAM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh11:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ret
LBB0_5:
Lloh14:
	adrp	x8, _V4L2_STD_PAL_M@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_STD_PAL_M@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh17:
	adrp	x8, _V4L2_STD_PAL_Nc@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_STD_PAL_Nc@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _V4L2_STD_PAL_N@GOTPAGE
Lloh21:
	ldr	x9, [x9, _V4L2_STD_PAL_N@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ret
LBB0_7:
Lloh23:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ret
LBB0_8:
Lloh26:
	adrp	x8, _V4L2_STD_PAL_60@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_STD_PAL_60@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ret
LBB0_9:
Lloh29:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ret
LBB0_10:
Lloh32:
	adrp	x8, _V4L2_STD_NTSC_443@GOTPAGE
Lloh33:
	ldr	x8, [x8, _V4L2_STD_NTSC_443@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_ADV7180_STATUS1_IN_LOCK,4,2    ; @ADV7180_STATUS1_IN_LOCK
	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.comm	_ADV7180_STATUS1_AUTOD_MASK,4,2 ; @ADV7180_STATUS1_AUTOD_MASK
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_V4L2_STD_NTSC_443,4,2          ; @V4L2_STD_NTSC_443
	.comm	_V4L2_STD_PAL_M,4,2             ; @V4L2_STD_PAL_M
	.comm	_V4L2_STD_PAL_60,4,2            ; @V4L2_STD_PAL_60
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_V4L2_STD_SECAM,4,2             ; @V4L2_STD_SECAM
	.comm	_V4L2_STD_PAL_Nc,4,2            ; @V4L2_STD_PAL_Nc
	.comm	_V4L2_STD_PAL_N,4,2             ; @V4L2_STD_PAL_N
	.no_dead_strip	_adv7180_std_to_v4l2
.subsections_via_symbols
