	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcspkr_do_sound
_pcspkr_do_sound:                       ## @pcspkr_do_sound
	.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
	movl	%edi, %ebx
	movq	_i8253_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	$182, %edi
	movl	$67, %esi
	callq	_outb_p
	movzbl	%bl, %edi
	movl	$66, %esi
	callq	_outb_p
	movzbl	%bh, %edi
	movl	$66, %esi
	callq	_outb
	movl	$97, %edi
	callq	_inb_p
	orl	$3, %eax
	movl	%eax, %edi
	movl	$97, %esi
	callq	_outb_p
	jmp	LBB0_3
LBB0_2:
	movl	$97, %edi
	callq	_inb_p
	andl	$252, %eax
	movl	%eax, %edi
	movl	$97, %esi
	callq	_outb
LBB0_3:
	movq	_i8253_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_i8253_lock,4,2                 ## @i8253_lock
	.no_dead_strip	_pcspkr_do_sound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcspkr_do_sound
_pcspkr_do_sound:                       ; @pcspkr_do_sound
	.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
Lloh0:
	adrp	x0, _i8253_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _i8253_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	cbz	w19, LBB0_2
; %bb.1:
	mov	w0, #182
	mov	w1, #67
	bl	_outb_p
	and	w0, w19, #0xff
	mov	w1, #66
	bl	_outb_p
	ubfx	w0, w19, #8, #8
	mov	w1, #66
	bl	_outb
	mov	w0, #97
	bl	_inb_p
	orr	w0, w0, #0x3
	mov	w1, #97
	bl	_outb_p
	b	LBB0_3
LBB0_2:
	mov	w0, #97
	bl	_inb_p
	and	w0, w0, #0xfc
	mov	w1, #97
	bl	_outb
LBB0_3:
Lloh2:
	adrp	x0, _i8253_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _i8253_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_i8253_lock,4,2                 ; @i8253_lock
	.no_dead_strip	_pcspkr_do_sound
.subsections_via_symbols
