	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac_add_hp_bass_switch
_stac_add_hp_bass_switch:               ## @stac_add_hp_bass_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	leaq	12(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	_stac_hp_bass_sw_ctrl@GOTPCREL(%rip), %rdx
	callq	_snd_hda_gen_add_kctl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	orb	$32, (%rbx)
	orb	$32, 4(%rbx)
	orb	$32, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bass Speaker Playback Switch"

	.comm	_stac_hp_bass_sw_ctrl,4,2       ## @stac_hp_bass_sw_ctrl
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_stac_add_hp_bass_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac_add_hp_bass_switch
_stac_add_hp_bass_switch:               ; @stac_add_hp_bass_switch
	.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
	ldr	x19, [x0]
	add	x0, x19, #12
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, _stac_hp_bass_sw_ctrl@GOTPAGE
Lloh3:
	ldr	x2, [x2, _stac_hp_bass_sw_ctrl@GOTPAGEOFF]
	bl	_snd_hda_gen_add_kctl
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	d0, [x19]
	orr.2s	v0, #32
	str	d0, [x19]
	ldr	w8, [x19, #8]
	orr	w8, w8, #0x20
	str	w8, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bass Speaker Playback Switch"

	.comm	_stac_hp_bass_sw_ctrl,4,2       ; @stac_hp_bass_sw_ctrl
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_stac_add_hp_bass_switch
.subsections_via_symbols
