	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function std_callback
_std_callback:                          ## @std_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	movl	(%rsi), %eax
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_AV7110_VIDEO_MODE_PAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:
	movq	_AV7110_VIDEO_MODE_NTSC@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movl	%esi, (%rdi)
	callq	_av7110_set_vidmode
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_AV7110_VIDEO_MODE_PAL,4,2      ## @AV7110_VIDEO_MODE_PAL
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_AV7110_VIDEO_MODE_NTSC,4,2     ## @AV7110_VIDEO_MODE_NTSC
	.no_dead_strip	_std_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function std_callback
_std_callback:                          ; @std_callback
	.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
	ldr	x0, [x0]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _V4L2_STD_PAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AV7110_VIDEO_MODE_PAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV7110_VIDEO_MODE_PAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _V4L2_STD_NTSC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _AV7110_VIDEO_MODE_NTSC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV7110_VIDEO_MODE_NTSC@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	str	w1, [x0]
	bl	_av7110_set_vidmode
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_AV7110_VIDEO_MODE_PAL,4,2      ; @AV7110_VIDEO_MODE_PAL
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_AV7110_VIDEO_MODE_NTSC,4,2     ; @AV7110_VIDEO_MODE_NTSC
	.no_dead_strip	_std_callback
.subsections_via_symbols
