	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_afe_status
_adv748x_afe_status:                    ## @adv748x_afe_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_adv748x_afe_to_state
	movq	_ADV748X_SDP_RO_10@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_adv748x_afe_read_ro_map
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:
	movq	_ADV748X_SDP_RO_10_IN_LOCK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	(%rdx), %edx
	andl	%ecx, %edx
	jne	LBB0_5
## %bb.4:
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	movl	%eax, (%rbx)
LBB0_6:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_19
## %bb.7:
	movq	_ADV748X_SDP_RO_10_IN_LOCK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
## %bb.9:
	shrl	$4, %ecx
	andl	$7, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_16:
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_1:
	movl	%ecx, %eax
	jmp	LBB0_19
LBB0_8:
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rcx
LBB0_17:
	movl	(%rcx), %ecx
LBB0_18:
	movl	%ecx, (%r14)
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_11:
	movq	_V4L2_STD_NTSC_443@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_12:
	movq	_V4L2_STD_PAL_M@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_13:
	movq	_V4L2_STD_PAL_60@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_14:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_15:
	movq	_V4L2_STD_PAL_Nc@GOTPCREL(%rip), %rdx
	movq	_V4L2_STD_PAL_N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_ADV748X_SDP_RO_10,4,2          ## @ADV748X_SDP_RO_10
	.comm	_ADV748X_SDP_RO_10_IN_LOCK,4,2  ## @ADV748X_SDP_RO_10_IN_LOCK
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ## @V4L2_IN_ST_NO_SIGNAL
	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.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	_adv748x_afe_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_afe_status
_adv748x_afe_status:                    ; @adv748x_afe_status
	.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
	mov	x20, x1
	bl	_adv748x_afe_to_state
Lloh0:
	adrp	x8, _ADV748X_SDP_RO_10@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV748X_SDP_RO_10@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_adv748x_afe_read_ro_map
	tbnz	w0, #31, LBB0_11
; %bb.1:
Lloh3:
	adrp	x8, _ADV748X_SDP_RO_10_IN_LOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADV748X_SDP_RO_10_IN_LOCK@GOTPAGEOFF]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, w10, wzr, eq
	str	w9, [x20]
LBB0_3:
	cbz	x19, LBB0_7
; %bb.4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.5:
	ubfx	w8, w0, #4, #3
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh10:
	adrp	x8, _V4L2_STD_SECAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_STD_SECAM@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
LBB0_10:
	mov	w0, #0
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh14:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
	b	LBB0_9
LBB0_13:
Lloh16:
	adrp	x8, _V4L2_STD_NTSC_443@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_STD_NTSC_443@GOTPAGEOFF]
	b	LBB0_9
LBB0_14:
Lloh18:
	adrp	x8, _V4L2_STD_PAL_M@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_STD_PAL_M@GOTPAGEOFF]
	b	LBB0_9
LBB0_15:
Lloh20:
	adrp	x8, _V4L2_STD_PAL_60@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_STD_PAL_60@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
Lloh22:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_17:
Lloh24:
	adrp	x8, _V4L2_STD_PAL_Nc@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_STD_PAL_Nc@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _V4L2_STD_PAL_N@GOTPAGE
Lloh28:
	ldr	x9, [x9, _V4L2_STD_PAL_N@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
                                        ; -- End function
	.comm	_ADV748X_SDP_RO_10,4,2          ; @ADV748X_SDP_RO_10
	.comm	_ADV748X_SDP_RO_10_IN_LOCK,4,2  ; @ADV748X_SDP_RO_10_IN_LOCK
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ; @V4L2_IN_ST_NO_SIGNAL
	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.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	_adv748x_afe_status
.subsections_via_symbols
