	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timer_spkr_acquire             ## -- Begin function timer_spkr_acquire
	.p2align	4, 0x90
_timer_spkr_acquire:                    ## @timer_spkr_acquire
	.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	_timer2_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_RELEASED@GOTPCREL(%rip), %rdx
	movl	$-1, %ebx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_TIMER_SEL2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_TIMER_SQWAVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	%ecx, %esi
	movq	_TIMER_16BIT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movq	_ACQUIRED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	movq	_TIMER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$63, %esi
	orl	%ecx, %esi
	callq	_outb
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ppi_spkr_on
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMER_SEL2,4,2                 ## @TIMER_SEL2
	.comm	_TIMER_SQWAVE,4,2               ## @TIMER_SQWAVE
	.comm	_TIMER_16BIT,4,2                ## @TIMER_16BIT
	.comm	_timer2_state,8,3               ## @timer2_state
	.comm	_RELEASED,8,3                   ## @RELEASED
	.comm	_ACQUIRED,8,3                   ## @ACQUIRED
	.comm	_TIMER_MODE,4,2                 ## @TIMER_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timer_spkr_acquire             ; -- Begin function timer_spkr_acquire
	.p2align	2
_timer_spkr_acquire:                    ; @timer_spkr_acquire
	.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
Lloh0:
	adrp	x8, _timer2_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timer2_state@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _RELEASED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RELEASED@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _TIMER_SEL2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TIMER_SEL2@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _TIMER_SQWAVE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TIMER_SQWAVE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _TIMER_16BIT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _TIMER_16BIT@GOTPAGEOFF]
	orr	w10, w10, w9
Lloh13:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh14:
	adrp	x11, _ACQUIRED@GOTPAGE
Lloh15:
	ldr	x11, [x11, _ACQUIRED@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	str	x11, [x8]
Lloh17:
	adrp	x8, _TIMER_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TIMER_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	and	w8, w10, #0x3f
	orr	w1, w8, w9
	bl	_outb
	bl	_ppi_spkr_on
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMER_SEL2,4,2                 ; @TIMER_SEL2
	.comm	_TIMER_SQWAVE,4,2               ; @TIMER_SQWAVE
	.comm	_TIMER_16BIT,4,2                ; @TIMER_16BIT
	.comm	_timer2_state,8,3               ; @timer2_state
	.comm	_RELEASED,8,3                   ; @RELEASED
	.comm	_ACQUIRED,8,3                   ; @ACQUIRED
	.comm	_TIMER_MODE,4,2                 ; @TIMER_MODE
.subsections_via_symbols
