	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp27smpx_set_audmode
_vp27smpx_set_audmode:                  ## @vp27smpx_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_to_state
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_v4l2_get_subdevdata
	movl	l___const.vp27smpx_set_audmode.data+8(%rip), %ecx
	movl	%ecx, -40(%rbp)
	movq	l___const.vp27smpx_set_audmode.data(%rip), %rcx
	movq	%rcx, -48(%rbp)
	movl	$1, %ecx
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$131, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_5
## %bb.3:
	movl	$2, %ecx
LBB0_4:
	movl	%ecx, -44(%rbp)
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	movl	$12, %edx
	callq	_i2c_master_send
	cmpl	$12, %eax
	jne	LBB0_6
## %bb.7:
	movl	%ebx, (%r15)
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.vp27smpx_set_audmode.data
l___const.vp27smpx_set_audmode.data:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4                               ## 0x4

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O error setting audmode\n"

	.no_dead_strip	_vp27smpx_set_audmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp27smpx_set_audmode
_vp27smpx_set_audmode:                  ; @vp27smpx_set_audmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_to_state
	mov	x21, x0
	mov	x0, x19
	bl	_v4l2_get_subdevdata
Lloh3:
	adrp	x8, l___const.vp27smpx_set_audmode.data@PAGE
Lloh4:
	add	x8, x8, l___const.vp27smpx_set_audmode.data@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #8]
	ldr	w8, [x8, #8]
	str	w8, [sp, #16]
	mov	w8, #1
	cmp	w20, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #131
	b.eq	LBB0_4
; %bb.2:
	cmp	w20, #130
	b.ne	LBB0_5
; %bb.3:
	mov	w8, #2
LBB0_4:
	str	w8, [sp, #12]
LBB0_5:
	add	x1, sp, #8
	mov	w2, #12
	bl	_i2c_master_send
	cmp	w0, #12
	b.ne	LBB0_7
; %bb.6:
	str	w20, [x21]
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
LBB0_8:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.vp27smpx_set_audmode.data
l___const.vp27smpx_set_audmode.data:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4                               ; 0x4

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O error setting audmode\n"

	.no_dead_strip	_vp27smpx_set_audmode
.subsections_via_symbols
