	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_V4L2_STD_PAL_I@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%rsi), %rax
	cmpq	%rax, %r14
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DEB_D
	movq	_GPIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4210768, %edx                  ## imm = 0x404050
	callq	_saa7146_write
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_gpio@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, (%r15)
	movl	%eax, %r14d
	jne	LBB0_4
## %bb.3:
	movq	_V4L2_STD_PAL_BG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_DEB_D
	movq	_GPIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4210768, %edx                  ## imm = 0x404050
	callq	_saa7146_write
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_gpio@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
LBB0_5:
	callq	_saa7111a_call
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_saa7111a_call
	cmpq	$0, (%r15)
	jne	LBB0_7
## %bb.6:
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_tuner_call
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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	_video,4,2                      ## @video
	.comm	_s_std,4,2                      ## @s_std
	.comm	_V4L2_STD_PAL_BG,4,2            ## @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	x21, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _V4L2_STD_PAL_I@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_PAL_I@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x8, [x1]
	cmp	x20, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEB_D
Lloh5:
	adrp	x8, _GPIO_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIO_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #16464
	movk	w2, #64, lsl #16
	bl	_saa7146_write
Lloh8:
	adrp	x8, _core@GOTPAGE
Lloh9:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _s_gpio@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_gpio@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x9, _V4L2_STD_PAL_BG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_STD_PAL_BG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	x10, [x19]
	cmp	x10, #0
	csel	w20, w9, w8, eq
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DEB_D
Lloh19:
	adrp	x8, _GPIO_CTRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GPIO_CTRL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #16464
	movk	w2, #64, lsl #16
	bl	_saa7146_write
Lloh22:
	adrp	x8, _core@GOTPAGE
Lloh23:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _s_gpio@GOTPAGE
Lloh26:
	ldr	x8, [x8, _s_gpio@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
LBB0_3:
	bl	_saa7111a_call
Lloh28:
	adrp	x8, _video@GOTPAGE
Lloh29:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _s_std@GOTPAGE
Lloh32:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_saa7111a_call
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh34:
	adrp	x8, _video@GOTPAGE
Lloh35:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _s_std@GOTPAGE
Lloh38:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_tuner_call
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.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	_video,4,2                      ; @video
	.comm	_s_std,4,2                      ; @s_std
	.comm	_V4L2_STD_PAL_BG,4,2            ; @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
