	.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
	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	%rdi, %r12
	movq	(%rdi), %r14
	movq	_V4L2_STD_PAL_I@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r15d, %r15d
	cmpq	(%rsi), %rbx
	setne	%r15b
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	_V4L2_STD_PAL_BG@GOTPCREL(%rip), %rax
	cmovneq	(%rax), %rbx
	callq	_DEB_D
	movq	_GPIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$4210768, %edx                  ## imm = 0x404050
	callq	_saa7146_write
	movq	_core@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_s_gpio@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_saa7111a_call
	movl	(%r12), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_tuner_call
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_PAL_I,8,3             ## @V4L2_STD_PAL_I
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_S_STD: setting mxb for PAL_I.\n"

	.comm	_GPIO_CTRL,4,2                  ## @GPIO_CTRL
	.comm	_core,4,2                       ## @core
	.comm	_s_gpio,4,2                     ## @s_gpio
	.comm	_s_std,4,2                      ## @s_std
	.comm	_V4L2_STD_PAL_BG,8,3            ## @V4L2_STD_PAL_BG
L_.str.1:                               ## @.str.1
	.asciz	"VIDIOC_S_STD: setting mxb for PAL/NTSC/SECAM.\n"

	.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	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, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _V4L2_STD_PAL_I@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_PAL_I@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x1]
Lloh3:
	adrp	x10, l_.str.1@PAGE
Lloh4:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh5:
	adrp	x11, l_.str@PAGE
Lloh6:
	add	x11, x11, l_.str@PAGEOFF
	cmp	x8, x9
	csel	x0, x11, x10, eq
	cset	w21, ne
Lloh7:
	adrp	x9, _V4L2_STD_PAL_BG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_STD_PAL_BG@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	csel	x22, x8, x9, eq
	bl	_DEB_D
Lloh10:
	adrp	x8, _GPIO_CTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GPIO_CTRL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16464
	movk	w2, #64, lsl #16
	bl	_saa7146_write
Lloh13:
	adrp	x19, _core@GOTPAGE
Lloh14:
	ldr	x19, [x19, _core@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh15:
	adrp	x8, _s_gpio@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s_gpio@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x21
	bl	_saa7111a_call
	ldr	w1, [x19]
Lloh18:
	adrp	x8, _s_std@GOTPAGE
Lloh19:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_tuner_call
	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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_PAL_I,8,3             ; @V4L2_STD_PAL_I
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_S_STD: setting mxb for PAL_I.\n"

	.comm	_GPIO_CTRL,4,2                  ; @GPIO_CTRL
	.comm	_core,4,2                       ; @core
	.comm	_s_gpio,4,2                     ; @s_gpio
	.comm	_s_std,4,2                      ; @s_std
	.comm	_V4L2_STD_PAL_BG,8,3            ; @V4L2_STD_PAL_BG
l_.str.1:                               ; @.str.1
	.asciz	"VIDIOC_S_STD: setting mxb for PAL/NTSC/SECAM.\n"

	.no_dead_strip	_std_callback
.subsections_via_symbols
