	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msp34xxg_set_audmode
_msp34xxg_set_audmode:                  ## @msp34xxg_set_audmode
	.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	%rdi, %rbx
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	cmpl	$32, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	_V4L2_TUNER_SUB_SAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_4
## %bb.2:
	movq	8(%rax), %rax
	movq	_V4L2_TUNER_MODE_LANG1_LANG2@GOTPCREL(%rip), %rcx
	movl	$33, %edx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_V4L2_TUNER_MODE_LANG2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
LBB0_4:
	movl	$32, %edx
LBB0_5:
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_msp_write_dem
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_msp34xxg_set_sources           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_SUB_SAP,4,2         ## @V4L2_TUNER_SUB_SAP
	.comm	_V4L2_TUNER_MODE_LANG1_LANG2,8,3 ## @V4L2_TUNER_MODE_LANG1_LANG2
	.comm	_V4L2_TUNER_MODE_LANG2,8,3      ## @V4L2_TUNER_MODE_LANG2
	.no_dead_strip	_msp34xxg_set_audmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp34xxg_set_audmode
_msp34xxg_set_audmode:                  ; @msp34xxg_set_audmode
	.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	w8, [x0]
	cmp	w8, #32
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _V4L2_TUNER_SUB_SAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_TUNER_SUB_SAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _V4L2_TUNER_MODE_LANG1_LANG2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_TUNER_MODE_LANG1_LANG2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _V4L2_TUNER_MODE_LANG2@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_TUNER_MODE_LANG2@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	w2, #33
	b	LBB0_5
LBB0_4:
	mov	w2, #32
LBB0_5:
	mov	x0, x19
	mov	w1, #32
	bl	_msp_write_dem
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msp34xxg_set_sources
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_SUB_SAP,4,2         ; @V4L2_TUNER_SUB_SAP
	.comm	_V4L2_TUNER_MODE_LANG1_LANG2,8,3 ; @V4L2_TUNER_MODE_LANG1_LANG2
	.comm	_V4L2_TUNER_MODE_LANG2,8,3      ; @V4L2_TUNER_MODE_LANG2
	.no_dead_strip	_msp34xxg_set_audmode
.subsections_via_symbols
