	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %r14
	cmpl	$0, 12(%r14)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	(%rdx), %rdi
	movq	_MAX_EM28XX_INPUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_1
## %bb.3:
	callq	_INPUT
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.4:
	movq	(%rbx), %rdi
	callq	_INPUT
	movl	16(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%rbx), %rdi
	callq	_INPUT
	movq	8(%rax), %rcx
	movq	%rcx, (%r14)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.5:
	movq	_EM28XX_AOUT_MASTER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_EM28XX_INPUT,8,3           ## @MAX_EM28XX_INPUT
	.comm	_EM28XX_AOUT_MASTER,8,3         ## @EM28XX_AOUT_MASTER
	.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
	ldr	x20, [x1]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x2
	ldr	x0, [x2]
Lloh0:
	adrp	x8, _MAX_EM28XX_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_EM28XX_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.2:
	bl	_INPUT
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x19]
	bl	_INPUT
	ldr	w8, [x0, #16]
	str	w8, [x20, #8]
	ldr	x0, [x19]
	bl	_INPUT
	ldr	x8, [x0, #8]
	str	x8, [x20]
	mov	w0, #0
	cbnz	x8, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _EM28XX_AOUT_MASTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EM28XX_AOUT_MASTER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_EM28XX_INPUT,8,3           ; @MAX_EM28XX_INPUT
	.comm	_EM28XX_AOUT_MASTER,8,3         ; @EM28XX_AOUT_MASTER
	.no_dead_strip	_vidioc_s_audio
.subsections_via_symbols
