	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hal2_gain_get
_hal2_gain_get:                         ## @hal2_gain_get
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %rdi
	movl	(%rbx), %ecx
	cmpl	$129, %ecx
	je	LBB0_4
## %bb.1:
                                        ## implicit-def: $esi
                                        ## implicit-def: $eax
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.2:
	movq	_H2I_DAC_C2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hal2_i_read32
	movl	%eax, %edx
	movq	_H2I_C2_MUTE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	movl	$0, %eax
	testl	%edx, (%rcx)
	jne	LBB0_5
## %bb.3:
	movq	_H2I_C2_L_ATT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%edx, %esi
	sarl	%cl, %esi
	movq	_H2I_C2_R_ATT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	notl	%esi
	andl	$31, %esi
	notl	%edx
	andl	$31, %edx
	movl	%edx, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_H2I_ADC_C2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hal2_i_read32
	movq	_H2I_C2_L_GAIN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %esi
	sarl	%cl, %esi
	andl	$15, %esi
	movq	_H2I_C2_R_GAIN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	andl	$15, %eax
LBB0_5:
	movq	(%r14), %rcx
	movl	%esi, (%rcx)
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2I_DAC_C2,4,2                 ## @H2I_DAC_C2
	.comm	_H2I_C2_MUTE,4,2                ## @H2I_C2_MUTE
	.comm	_H2I_C2_L_ATT_SHIFT,4,2         ## @H2I_C2_L_ATT_SHIFT
	.comm	_H2I_C2_R_ATT_SHIFT,4,2         ## @H2I_C2_R_ATT_SHIFT
	.comm	_H2I_ADC_C2,4,2                 ## @H2I_ADC_C2
	.comm	_H2I_C2_L_GAIN_SHIFT,4,2        ## @H2I_C2_L_GAIN_SHIFT
	.comm	_H2I_C2_R_GAIN_SHIFT,4,2        ## @H2I_C2_R_GAIN_SHIFT
	.no_dead_strip	_hal2_gain_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hal2_gain_get
_hal2_gain_get:                         ; @hal2_gain_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	ldr	w10, [x20]
	cmp	w10, #129
	b.eq	LBB0_4
; %bb.1:
                                        ; implicit-def: $w8
                                        ; implicit-def: $w9
	cmp	w10, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _H2I_DAC_C2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2I_DAC_C2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_hal2_i_read32
Lloh3:
	adrp	x8, _H2I_C2_MUTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2I_C2_MUTE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
	mov	w8, #0
	mov	w9, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _H2I_ADC_C2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H2I_ADC_C2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_hal2_i_read32
Lloh9:
	adrp	x8, _H2I_C2_L_GAIN_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H2I_C2_L_GAIN_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	asr	w8, w0, w8
	and	w8, w8, #0xf
Lloh12:
	adrp	x9, _H2I_C2_R_GAIN_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _H2I_C2_R_GAIN_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w9, w0, w9
	and	w9, w9, #0xf
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _H2I_C2_L_ATT_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _H2I_C2_L_ATT_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	asr	w8, w0, w8
	mvn	w8, w8
	and	w8, w8, #0x1f
Lloh18:
	adrp	x9, _H2I_C2_R_ATT_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _H2I_C2_R_ATT_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	asr	w9, w0, w9
	mvn	w9, w9
	and	w9, w9, #0x1f
LBB0_6:
	ldr	x10, [x19]
	stp	w8, w9, [x10]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_H2I_DAC_C2,4,2                 ; @H2I_DAC_C2
	.comm	_H2I_C2_MUTE,4,2                ; @H2I_C2_MUTE
	.comm	_H2I_C2_L_ATT_SHIFT,4,2         ; @H2I_C2_L_ATT_SHIFT
	.comm	_H2I_C2_R_ATT_SHIFT,4,2         ; @H2I_C2_R_ATT_SHIFT
	.comm	_H2I_ADC_C2,4,2                 ; @H2I_ADC_C2
	.comm	_H2I_C2_L_GAIN_SHIFT,4,2        ; @H2I_C2_L_GAIN_SHIFT
	.comm	_H2I_C2_R_GAIN_SHIFT,4,2        ; @H2I_C2_R_GAIN_SHIFT
	.no_dead_strip	_hal2_gain_get
.subsections_via_symbols
