	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7183_querystd
_adv7183_querystd:                      ## @adv7183_querystd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_adv7183
	movq	%rax, %r15
	movq	_ADV7183_IN_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_adv7183_read
	andl	$15, %eax
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_adv7183_write
	movl	$10, %edi
	callq	_mdelay
	movq	_ADV7183_STATUS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_adv7183_read
                                        ## kill: def $eax killed $eax def $rax
	shrl	$4, %eax
	andl	$7, %eax
	leaq	l_switch.table.adv7183_querystd(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	andl	%eax, (%r14)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_adv7183_s_std
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7183_IN_CTRL,4,2            ## @ADV7183_IN_CTRL
	.comm	_ADV7183_STATUS_1,4,2           ## @ADV7183_STATUS_1
	.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_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.no_dead_strip	_adv7183_querystd
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.adv7183_querystd
l_switch.table.adv7183_querystd:
	.quad	_V4L2_STD_NTSC
	.quad	_V4L2_STD_NTSC_443
	.quad	_V4L2_STD_PAL_M
	.quad	_V4L2_STD_PAL_60
	.quad	_V4L2_STD_PAL
	.quad	_V4L2_STD_SECAM
	.quad	_V4L2_STD_PAL_Nc
	.quad	_V4L2_STD_SECAM

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7183_querystd
_adv7183_querystd:                      ; @adv7183_querystd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	bl	_to_adv7183
	mov	x21, x0
Lloh0:
	adrp	x22, _ADV7183_IN_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ADV7183_IN_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_adv7183_read
	and	w2, w0, #0xf
	ldr	w1, [x22]
	mov	x0, x20
	bl	_adv7183_write
	mov	w0, #10
	bl	_mdelay
Lloh2:
	adrp	x8, _ADV7183_STATUS_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADV7183_STATUS_1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_adv7183_read
	ubfx	w8, w0, #4, #3
Lloh5:
	adrp	x9, l_switch.table.adv7183_querystd@PAGE
Lloh6:
	add	x9, x9, l_switch.table.adv7183_querystd@PAGEOFF
	ldr	x8, [x9, w8, uxtw #3]
	ldr	w8, [x8]
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_adv7183_s_std
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7183_IN_CTRL,4,2            ; @ADV7183_IN_CTRL
	.comm	_ADV7183_STATUS_1,4,2           ; @ADV7183_STATUS_1
	.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_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.no_dead_strip	_adv7183_querystd
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.adv7183_querystd
l_switch.table.adv7183_querystd:
	.quad	_V4L2_STD_NTSC
	.quad	_V4L2_STD_NTSC_443
	.quad	_V4L2_STD_PAL_M
	.quad	_V4L2_STD_PAL_60
	.quad	_V4L2_STD_PAL
	.quad	_V4L2_STD_SECAM
	.quad	_V4L2_STD_PAL_Nc
	.quad	_V4L2_STD_SECAM

.subsections_via_symbols
