	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8775_s_ctrl
_wm8775_s_ctrl:                         ## @wm8775_s_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_to_sd
	movl	(%rbx), %ecx
	leal	-128(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_3
## %bb.1:
	cmpl	$130, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$131, %ecx
	jne	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_wm8775_set_audio
	jmp	LBB0_8
LBB0_4:
	movq	_R17@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:
	movq	_ALC_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_6:
	movq	_ALC_HOLD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_wm8775_write
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R17,4,2                        ## @R17
	.comm	_ALC_EN,4,2                     ## @ALC_EN
	.comm	_ALC_HOLD,4,2                   ## @ALC_HOLD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wm8775_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8775_s_ctrl
_wm8775_s_ctrl:                         ; @wm8775_s_ctrl
	.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, x0
	bl	_to_sd
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_3
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_5
LBB0_3:
	mov	w1, #0
	bl	_wm8775_set_audio
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _R17@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R17@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _ALC_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ALC_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, wzr, w9, eq
Lloh6:
	adrp	x9, _ALC_HOLD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ALC_HOLD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_wm8775_write
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_R17,4,2                        ; @R17
	.comm	_ALC_EN,4,2                     ; @ALC_EN
	.comm	_ALC_HOLD,4,2                   ; @ALC_HOLD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wm8775_s_ctrl
.subsections_via_symbols
