	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pmac_awacs_put_switch
_snd_pmac_awacs_put_switch:             ## @snd_pmac_awacs_put_switch
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r13
	movl	(%rbx), %r15d
	movzbl	%r15b, %ebx
	movl	%r15d, %r14d
	shrl	$8, %r14d
	shrl	$16, %r15d
	andl	$1, %r15d
	leaq	8(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	%rbx, %rsi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %r12d
	movl	%r12d, %eax
	btrl	%r14d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%r12d, %ebx
	btsl	%r14d, %ebx
	cmpl	%r15d, (%rcx)
	cmovel	%eax, %ebx
	cmpl	%ebx, %r12d
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_snd_pmac_awacs_write_reg
LBB0_2:
	xorl	%r15d, %r15d
	cmpl	%ebx, %r12d
	setne	%r15b
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_pmac_awacs_put_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pmac_awacs_put_switch
_snd_pmac_awacs_put_switch:             ; @snd_pmac_awacs_put_switch
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w8, [x20]
	and	x21, x8, #0xff
	ubfx	x9, x8, #8, #24
	ubfx	w24, w8, #16, #1
	mov	w8, #1
	lsl	w25, w8, w9
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
	ldr	w23, [x8, x21, lsl #2]
	bic	w8, w23, w25
	ldr	x9, [x22]
	ldr	w9, [x9]
	orr	w10, w23, w25
	cmp	w9, w24
	csel	w22, w8, w10, eq
	cmp	w23, w22
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_snd_pmac_awacs_write_reg
LBB0_2:
	cmp	w23, w22
	cset	w19, ne
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_pmac_awacs_put_switch
.subsections_via_symbols
