	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dapm_set_pga
_dapm_set_pga:                          ## @dapm_set_pga
	.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
	cmpl	$0, (%rdi)
	setne	%al
	testl	%esi, %esi
	setne	%cl
	xorb	%al, %cl
	jne	LBB0_16
## %bb.1:
	movq	%rdi, %r12
	cmpq	$0, 16(%rdi)
	je	LBB0_16
## %bb.2:
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movl	%esi, %r13d
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r14d
	movl	4(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rcx), %ebx
	movl	%ebx, %edi
	callq	_fls
	movl	$-1, %r15d
	movl	%eax, %ecx
	shll	%cl, %r15d
	notl	%r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %ecx
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.4:
	movl	4(%r12), %eax
	xorl	%r13d, %r13d
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.5:
	cmpl	%eax, %ebx
	jle	LBB0_15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_snd_soc_update_bits
	decl	%ebx
	cmpl	4(%r12), %ebx
	jg	LBB0_6
	jmp	LBB0_15
LBB0_10:
	movl	8(%r12), %edi
	movl	%r14d, %esi
	movl	%ecx, %r13d
	callq	_snd_soc_read
	movl	%eax, %ebx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	andl	%r15d, %ebx
	movl	%ebx, 4(%r12)
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.11:
	movl	$1, %r13d
	cmpl	%r15d, %ebx
	jae	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_snd_soc_update_bits
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_12
	jmp	LBB0_15
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_15
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_snd_soc_update_bits
	incl	%ebx
	cmpl	4(%r12), %ebx
	jl	LBB0_9
	jmp	LBB0_15
LBB0_13:
	movl	$1, %r13d
	testl	%ebx, %ebx
	jle	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_snd_soc_update_bits
	leal	-1(%rbx), %eax
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_14
LBB0_15:
	movl	%r13d, (%r12)
LBB0_16:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dapm_set_pga
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dapm_set_pga
_dapm_set_pga:                          ; @dapm_set_pga
	.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
	ldr	w8, [x0]
	cmp	w8, #0
	cset	w8, ne
	cmp	w1, #0
	cset	w9, ne
	eor	w8, w9, w8
	tbnz	w8, #0, LBB0_17
; %bb.1:
	mov	x19, x0
	ldp	x9, x8, [x0, #16]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_17
; %bb.2:
	mov	x23, x1
	ldr	x25, [x8]
	ldp	w20, w24, [x25]
	ldr	w22, [x25, #8]
	mov	x0, x22
	bl	_fls
	mov	w8, #-1
	lsl	w8, w8, w0
	mvn	w21, w8
	ldr	w25, [x25, #12]
	cbz	w23, LBB0_6
; %bb.3:
	ldr	w8, [x19, #4]
	cbz	w25, LBB0_9
; %bb.4:
	cmp	w22, w8
	b.le	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_snd_soc_update_bits
	sub	w22, w22, #1
	ldr	w8, [x19, #4]
	cmp	w22, w8
	b.gt	LBB0_5
	b	LBB0_12
LBB0_6:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_snd_soc_read
	asr	w8, w0, w24
	and	w22, w8, w21
	str	w22, [x19, #4]
	cbz	w25, LBB0_13
; %bb.7:
	cmp	w22, w21
	b.hs	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_snd_soc_update_bits
	add	w22, w22, #1
	cmp	w21, w22
	b.ne	LBB0_8
	b	LBB0_15
LBB0_9:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	w22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_snd_soc_update_bits
	add	w22, w22, #1
	ldr	w8, [x19, #4]
	cmp	w22, w8
	b.lt	LBB0_11
LBB0_12:
	mov	w8, #0
	b	LBB0_16
LBB0_13:
	cmp	w22, #1
	b.lt	LBB0_15
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_snd_soc_update_bits
	subs	w22, w22, #1
	b.hi	LBB0_14
LBB0_15:
	mov	w8, #1
LBB0_16:
	str	w8, [x19]
LBB0_17:
	mov	w0, #0
	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	_dapm_set_pga
.subsections_via_symbols
