	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm4853_set_spk
_lm4853_set_spk:                        ## @lm4853_set_spk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	cmpl	$0, (%rax)
	movq	_LM4853_SPK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_2
## %bb.1:
	movq	_lm4853_state@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%esi, %esi
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	movq	_lm4853_state@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	$1, %esi
LBB0_3:
	movq	_lm4853_state@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_GTA02_GPIO_HP_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gpio_set_value
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM4853_SPK,4,2                 ## @LM4853_SPK
	.comm	_lm4853_state,4,2               ## @lm4853_state
	.comm	_GTA02_GPIO_HP_IN,4,2           ## @GTA02_GPIO_HP_IN
	.no_dead_strip	_lm4853_set_spk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm4853_set_spk
_lm4853_set_spk:                        ; @lm4853_set_spk
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
	ldr	w10, [x8]
Lloh0:
	adrp	x8, _LM4853_SPK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM4853_SPK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _lm4853_state@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lm4853_state@GOTPAGEOFF]
	cbz	w10, LBB0_2
; %bb.1:
	mov	w1, #0
	ldr	w10, [x8]
	orr	w9, w10, w9
	b	LBB0_3
LBB0_2:
	ldr	w10, [x8]
	bic	w9, w10, w9
	mov	w1, #1
LBB0_3:
	str	w9, [x8]
Lloh5:
	adrp	x8, _GTA02_GPIO_HP_IN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GTA02_GPIO_HP_IN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_gpio_set_value
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LM4853_SPK,4,2                 ; @LM4853_SPK
	.comm	_lm4853_state,4,2               ; @lm4853_state
	.comm	_GTA02_GPIO_HP_IN,4,2           ; @GTA02_GPIO_HP_IN
	.no_dead_strip	_lm4853_set_spk
.subsections_via_symbols
