	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_audio
_vidioc_s_audio:                        ## @vidioc_s_audio
	.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	%rdx, %rbx
	movq	(%rsi), %rax
	movq	(%rax), %r15
	movl	(%rdx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DEB_D
	movq	_mxb_inputs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %eax
	movslq	(%rbx), %rsi
	btl	%esi, %eax
	jae	LBB0_4
## %bb.1:
	xorl	%r14d, %r14d
	cmpq	%rsi, 8(%r15)
	je	LBB0_5
## %bb.2:
	movq	%rsi, 8(%r15)
	movq	%r15, %rdi
	callq	_tea6420_route
	cmpq	$0, 8(%r15)
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_mxb_update_audmode
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_S_AUDIO %d\n"

	.comm	_mxb_inputs,8,3                 ## @mxb_inputs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_s_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_audio
_vidioc_s_audio:                        ; @vidioc_s_audio
	.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	x20, x2
	ldr	x8, [x1]
	ldr	x19, [x8]
	ldr	w1, [x2]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEB_D
Lloh2:
	adrp	x8, _mxb_inputs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mxb_inputs@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w9, [x8, x9, lsl #2]
	ldr	w8, [x20]
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_5
; %bb.1:
	sxtw	x1, w8
	ldr	x8, [x19, #8]
	cmp	x8, x1
	b.eq	LBB0_4
; %bb.2:
	str	x1, [x19, #8]
	mov	x0, x19
	bl	_tea6420_route
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mxb_update_audmode
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_S_AUDIO %d\n"

	.comm	_mxb_inputs,8,3                 ; @mxb_inputs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_s_audio
.subsections_via_symbols
