	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1848_mixer_set_channel
_ad1848_mixer_set_channel:              ## @ad1848_mixer_set_channel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,8), %edx
	movslq	%edx, %r15
	movslq	4(%rax,%rcx,8), %r14
	movl	%r15d, %esi
	callq	_ad_read
	movb	%al, -41(%rbp)
	cmpl	%r15d, %r14d
	jne	LBB0_2
## %bb.1:
	leaq	-41(%rbp), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ad_read
	movb	%al, -42(%rbp)
	leaq	-42(%rbp), %rdx
LBB0_3:
	leaq	-41(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_change_bits
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movzbl	-41(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ad_write
	movb	-41(%rbp), %al
	movq	(%rbx), %rcx
	movb	%al, (%rcx,%r15)
	cmpl	%r15d, %r14d
	je	LBB0_5
## %bb.4:
	movzbl	-42(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ad_write
	movb	-42(%rbp), %al
	movq	(%rbx), %rcx
	movb	%al, (%rcx,%r14)
LBB0_5:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ad1848_mixer_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1848_mixer_set_channel
_ad1848_mixer_set_channel:              ; @ad1848_mixer_set_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8, w1, sxtw #3]
	add	x8, x8, w3, sxtw #3
	ldp	w25, w20, [x8]
                                        ; kill: def $w20 killed $w20 def $x20
	sxtw	x20, w20
	sxtw	x21, w25
	mov	x1, x25
	bl	_ad_read
	strb	w0, [sp, #15]
	cmp	w20, w25
	b.ne	LBB0_2
; %bb.1:
	add	x2, sp, #15
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_ad_read
	strb	w0, [sp, #14]
	add	x2, sp, #14
LBB0_3:
	add	x1, sp, #15
	mov	x0, x19
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	bl	_change_bits
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldrb	w2, [sp, #15]
	mov	x0, x19
	mov	x1, x21
	bl	_ad_write
	ldrb	w8, [sp, #15]
	ldr	x9, [x19]
	strb	w8, [x9, x21]
	cmp	w20, w21
	b.eq	LBB0_5
; %bb.4:
	ldrb	w2, [sp, #14]
	mov	x0, x19
	mov	x1, x20
	bl	_ad_write
	ldrb	w8, [sp, #14]
	ldr	x9, [x19]
	strb	w8, [x9, x20]
LBB0_5:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ad1848_mixer_set_channel
.subsections_via_symbols
