	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msp34xxg_modus
_msp34xxg_modus:                        ## @msp34xxg_modus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movl	$1, %r14d
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movl	(%rax), %eax
	movq	_V4L2_STD_NTSC_M_JP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movl	$16385, %r14d                   ## imm = 0x4001
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_10
LBB0_4:
	movq	_V4L2_STD_NTSC_M_KR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	_V4L2_STD_SECAM_L@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movl	$24577, %r14d                   ## imm = 0x6001
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_V4L2_STD_MN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	movl	$8193, %r14d                    ## imm = 0x2001
	leaq	L_.str.4(%rip), %rcx
LBB0_10:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_dev_dbg_lvl
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movl	$28673, %r14d                   ## imm = 0x7001
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_msp_debug,4,2                  ## @msp_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"selected radio modus\n"

	.comm	_V4L2_STD_NTSC_M_JP,4,2         ## @V4L2_STD_NTSC_M_JP
L_.str.1:                               ## @.str.1
	.asciz	"selected M (EIA-J) modus\n"

	.comm	_V4L2_STD_NTSC_M_KR,4,2         ## @V4L2_STD_NTSC_M_KR
L_.str.2:                               ## @.str.2
	.asciz	"selected M (A2) modus\n"

	.comm	_V4L2_STD_SECAM_L,4,2           ## @V4L2_STD_SECAM_L
L_.str.3:                               ## @.str.3
	.asciz	"selected SECAM-L modus\n"

	.comm	_V4L2_STD_MN,4,2                ## @V4L2_STD_MN
L_.str.4:                               ## @.str.4
	.asciz	"selected M (BTSC) modus\n"

	.no_dead_strip	_msp34xxg_modus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp34xxg_modus
_msp34xxg_modus:                        ; @msp34xxg_modus
	.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, x0
	bl	_i2c_get_clientdata
	bl	_to_state
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w20, #1
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_10
LBB0_2:
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _V4L2_STD_NTSC_M_JP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_STD_NTSC_M_JP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #16385
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x9, _V4L2_STD_NTSC_M_KR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_STD_NTSC_M_KR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	mov	w20, #1
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh12:
	adrp	x9, _V4L2_STD_SECAM_L@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_STD_SECAM_L@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	mov	w20, #24577
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x9, _V4L2_STD_MN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V4L2_STD_MN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	mov	w20, #8193
Lloh20:
	adrp	x3, l_.str.4@PAGE
Lloh21:
	add	x3, x3, l_.str.4@PAGEOFF
LBB0_10:
Lloh22:
	adrp	x8, _msp_debug@GOTPAGE
Lloh23:
	ldr	x8, [x8, _msp_debug@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w20, #28673
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_msp_debug,4,2                  ; @msp_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"selected radio modus\n"

	.comm	_V4L2_STD_NTSC_M_JP,4,2         ; @V4L2_STD_NTSC_M_JP
l_.str.1:                               ; @.str.1
	.asciz	"selected M (EIA-J) modus\n"

	.comm	_V4L2_STD_NTSC_M_KR,4,2         ; @V4L2_STD_NTSC_M_KR
l_.str.2:                               ; @.str.2
	.asciz	"selected M (A2) modus\n"

	.comm	_V4L2_STD_SECAM_L,4,2           ; @V4L2_STD_SECAM_L
l_.str.3:                               ; @.str.3
	.asciz	"selected SECAM-L modus\n"

	.comm	_V4L2_STD_MN,4,2                ; @V4L2_STD_MN
l_.str.4:                               ; @.str.4
	.asciz	"selected M (BTSC) modus\n"

	.no_dead_strip	_msp34xxg_modus
.subsections_via_symbols
