	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_amp_caps
_print_amp_caps:                        ## @print_amp_caps
	.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	%rdi, %r14
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_AC_PAR_AMP_OUT_CAP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AC_PAR_AMP_IN_CAP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	%rsi, %rdi
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_snd_hda_param_read
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	cmpl	$1, %ecx
	ja	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_iprintf                    ## TAILCALL
LBB0_5:
	movq	_AC_AMPCAP_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_AC_AMPCAP_NUM_STEPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	movq	_AC_AMPCAP_NUM_STEPS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %ebx
	movq	_AC_AMPCAP_STEP_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	andl	%eax, %r8d
	movq	_AC_AMPCAP_STEP_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %r8d
	movq	_AC_AMPCAP_MUTE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_AC_AMPCAP_MUTE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	movl	%eax, %r9d
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_iprintf                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.comm	_AC_PAR_AMP_OUT_CAP,4,2         ## @AC_PAR_AMP_OUT_CAP
	.comm	_AC_PAR_AMP_IN_CAP,4,2          ## @AC_PAR_AMP_IN_CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"N/A\n"

L_.str.1:                               ## @.str.1
	.asciz	"ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, mute=%x\n"

	.comm	_AC_AMPCAP_OFFSET,4,2           ## @AC_AMPCAP_OFFSET
	.comm	_AC_AMPCAP_NUM_STEPS,4,2        ## @AC_AMPCAP_NUM_STEPS
	.comm	_AC_AMPCAP_NUM_STEPS_SHIFT,4,2  ## @AC_AMPCAP_NUM_STEPS_SHIFT
	.comm	_AC_AMPCAP_STEP_SIZE,4,2        ## @AC_AMPCAP_STEP_SIZE
	.comm	_AC_AMPCAP_STEP_SIZE_SHIFT,4,2  ## @AC_AMPCAP_STEP_SIZE_SHIFT
	.comm	_AC_AMPCAP_MUTE,4,2             ## @AC_AMPCAP_MUTE
	.comm	_AC_AMPCAP_MUTE_SHIFT,4,2       ## @AC_AMPCAP_MUTE_SHIFT
	.no_dead_strip	_print_amp_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_amp_caps
_print_amp_caps:                        ; @print_amp_caps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x2
	mov	x19, x0
Lloh0:
	adrp	x9, _HDA_OUTPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDA_OUTPUT@GOTPAGEOFF]
Lloh2:
	adrp	x10, _AC_PAR_AMP_OUT_CAP@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AC_PAR_AMP_OUT_CAP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _AC_PAR_AMP_IN_CAP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _AC_PAR_AMP_IN_CAP@GOTPAGEOFF]
	cmp	w9, w3
	csel	x9, x10, x11, eq
	ldr	w2, [x9]
	mov	x0, x1
	mov	x1, x8
	bl	_snd_hda_param_read
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_snd_iprintf
LBB0_2:
Lloh9:
	adrp	x8, _AC_AMPCAP_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AC_AMPCAP_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _AC_AMPCAP_NUM_STEPS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AC_AMPCAP_NUM_STEPS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh15:
	adrp	x10, _AC_AMPCAP_NUM_STEPS_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AC_AMPCAP_NUM_STEPS_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsr	w9, w9, w10
Lloh18:
	adrp	x10, _AC_AMPCAP_STEP_SIZE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _AC_AMPCAP_STEP_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	and	w10, w10, w0
Lloh21:
	adrp	x11, _AC_AMPCAP_STEP_SIZE_SHIFT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _AC_AMPCAP_STEP_SIZE_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	lsr	w10, w10, w11
Lloh24:
	adrp	x11, _AC_AMPCAP_MUTE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _AC_AMPCAP_MUTE@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	and	w11, w11, w0
Lloh27:
	adrp	x12, _AC_AMPCAP_MUTE_SHIFT@GOTPAGE
Lloh28:
	ldr	x12, [x12, _AC_AMPCAP_MUTE_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w12, [x12]
	lsr	w11, w11, w12
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snd_iprintf
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.comm	_AC_PAR_AMP_OUT_CAP,4,2         ; @AC_PAR_AMP_OUT_CAP
	.comm	_AC_PAR_AMP_IN_CAP,4,2          ; @AC_PAR_AMP_IN_CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"N/A\n"

l_.str.1:                               ; @.str.1
	.asciz	"ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, mute=%x\n"

	.comm	_AC_AMPCAP_OFFSET,4,2           ; @AC_AMPCAP_OFFSET
	.comm	_AC_AMPCAP_NUM_STEPS,4,2        ; @AC_AMPCAP_NUM_STEPS
	.comm	_AC_AMPCAP_NUM_STEPS_SHIFT,4,2  ; @AC_AMPCAP_NUM_STEPS_SHIFT
	.comm	_AC_AMPCAP_STEP_SIZE,4,2        ; @AC_AMPCAP_STEP_SIZE
	.comm	_AC_AMPCAP_STEP_SIZE_SHIFT,4,2  ; @AC_AMPCAP_STEP_SIZE_SHIFT
	.comm	_AC_AMPCAP_MUTE,4,2             ; @AC_AMPCAP_MUTE
	.comm	_AC_AMPCAP_MUTE_SHIFT,4,2       ; @AC_AMPCAP_MUTE_SHIFT
	.no_dead_strip	_print_amp_caps
.subsections_via_symbols
