	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_audio_mode
_set_audio_mode:                        ## @set_audio_mode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r12, %rdx
	movl	%r14d, %r8d
	callq	_v4l2_dbg
	movq	_reg_set_audio_template@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%r14d, %rbx
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1132, %esi                     ## imm = 0x46C
	callq	_saa717x_write
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %edx
	movq	%r12, %rdi
	movl	$1136, %esi                     ## imm = 0x470
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_saa717x_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing registers to set audio mode by set %d\n"

	.comm	_reg_set_audio_template,8,3     ## @reg_set_audio_template
	.no_dead_strip	_set_audio_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_audio_mode
_set_audio_mode:                        ; @set_audio_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	mov	x4, x19
	bl	_v4l2_dbg
Lloh5:
	adrp	x21, _reg_set_audio_template@GOTPAGE
Lloh6:
	ldr	x21, [x21, _reg_set_audio_template@GOTPAGEOFF]
	ldr	x8, [x21]
	sbfiz	x19, x19, #3, #32
	ldr	x8, [x8, x19]
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #1132
	bl	_saa717x_write
	ldr	x8, [x21]
	ldr	x8, [x8, x19]
	ldr	w2, [x8, #4]
	mov	x0, x20
	mov	w1, #1136
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_saa717x_write
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing registers to set audio mode by set %d\n"

	.comm	_reg_set_audio_template,8,3     ; @reg_set_audio_template
	.no_dead_strip	_set_audio_mode
.subsections_via_symbols
