	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ml86v7667_querystd
_ml86v7667_querystd:                    ## @ml86v7667_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_v4l2_get_subdevdata
	movq	_STATUS_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	_STATUS_HLOCK_DETECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.2:
	movq	_STATUS_NTSCPAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_7
LBB0_3:
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rbx), %ecx
	andl	(%rax), %ecx
LBB0_7:
	movl	%ecx, (%rbx)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_REG,4,2                 ## @STATUS_REG
	.comm	_STATUS_HLOCK_DETECT,4,2        ## @STATUS_HLOCK_DETECT
	.comm	_STATUS_NTSCPAL,4,2             ## @STATUS_NTSCPAL
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.no_dead_strip	_ml86v7667_querystd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ml86v7667_querystd
_ml86v7667_querystd:                    ; @ml86v7667_querystd
	.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, x1
	bl	_v4l2_get_subdevdata
Lloh0:
	adrp	x8, _STATUS_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _STATUS_HLOCK_DETECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS_HLOCK_DETECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _STATUS_NTSCPAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATUS_NTSCPAL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _V4L2_STD_625_50@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh10:
	adrp	x10, _V4L2_STD_525_60@GOTPAGE
Lloh11:
	ldr	x10, [x10, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	ldr	w9, [x19]
	and	w8, w9, w8
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
LBB0_4:
	mov	w0, #0
	str	w8, [x19]
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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_REG,4,2                 ; @STATUS_REG
	.comm	_STATUS_HLOCK_DETECT,4,2        ; @STATUS_HLOCK_DETECT
	.comm	_STATUS_NTSCPAL,4,2             ; @STATUS_NTSCPAL
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.no_dead_strip	_ml86v7667_querystd
.subsections_via_symbols
