	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fmr2_setvolume
_fmr2_setvolume:                        ## @fmr2_setvolume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %eax
	cmpl	$11, 4(%rdi)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	movl	(%rdi), %eax
	andl	$15, %eax
	leaq	l___const.fmr2_setvolume.vol(%rip), %rcx
	movl	(%rcx,%rax,4), %r12d
	movl	$13, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r13), %ecx
	movl	%r12d, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
	shll	$6, %ebx
	andl	$64, %ebx
	leal	4(%rbx), %r14d
	movl	8(%r15), %esi
	movl	%r14d, %edi
	callq	_outb
	movl	8(%r15), %esi
	movl	$4, %edi
	callq	_wait
	orl	$36, %ebx
	movl	8(%r15), %esi
	movl	%ebx, %edi
	callq	_outb
	movl	8(%r15), %esi
	movl	$4, %edi
	callq	_wait
	movl	8(%r15), %esi
	movl	%r14d, %edi
	callq	_outb
	movl	8(%r15), %esi
	movl	$4, %edi
	callq	_wait
	decl	%r13d
	cmpl	$1, %r13d
	ja	LBB0_2
## %bb.3:
	movl	$7, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r12), %ecx
	movl	$24, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
	shll	$6, %ebx
	andl	$64, %ebx
	leal	4(%rbx), %r14d
	movl	8(%r15), %esi
	movl	%r14d, %edi
	callq	_outb
	movl	8(%r15), %esi
	movl	$4, %edi
	callq	_wait
	orl	$36, %ebx
	movl	8(%r15), %esi
	movl	%ebx, %edi
	callq	_outb
	movl	8(%r15), %esi
	movl	$4, %edi
	callq	_wait
	movl	8(%r15), %esi
	movl	%r14d, %edi
	callq	_outb
	movl	8(%r15), %esi
	movl	$4, %edi
	callq	_wait
	decl	%r12d
	cmpl	$1, %r12d
	ja	LBB0_4
## %bb.5:
	movl	8(%r15), %esi
	movl	$4, %edi
	callq	_wait
	movl	8(%r15), %esi
	movl	$20, %edi
	callq	_outb
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.fmr2_setvolume.vol
l___const.fmr2_setvolume.vol:
	.long	33                              ## 0x21
	.long	132                             ## 0x84
	.long	144                             ## 0x90
	.long	260                             ## 0x104
	.long	272                             ## 0x110
	.long	516                             ## 0x204
	.long	528                             ## 0x210
	.long	1026                            ## 0x402
	.long	1028                            ## 0x404
	.long	1032                            ## 0x408
	.long	1040                            ## 0x410
	.long	2049                            ## 0x801
	.long	2050                            ## 0x802
	.long	2052                            ## 0x804
	.long	2056                            ## 0x808
	.long	2064                            ## 0x810

	.no_dead_strip	_fmr2_setvolume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fmr2_setvolume
_fmr2_setvolume:                        ; @fmr2_setvolume
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0, #4]
	cmp	w8, #11
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	and	x8, x8, #0xf
Lloh0:
	adrp	x9, l___const.fmr2_setvolume.vol@PAGE
Lloh1:
	add	x9, x9, l___const.fmr2_setvolume.vol@PAGEOFF
	ldr	w21, [x9, x8, lsl #2]
	mov	w22, #13
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w22, #2
	lsr	w23, w21, w8
	mov	w20, #4
	bfi	w20, w23, #6, #1
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_outb
	ldr	w1, [x19, #8]
	mov	w0, #4
	bl	_wait
	mov	w0, #36
	bfi	w0, w23, #6, #1
	ldr	w1, [x19, #8]
	bl	_outb
	ldr	w1, [x19, #8]
	mov	w0, #4
	bl	_wait
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_outb
	ldr	w1, [x19, #8]
	mov	w0, #4
	bl	_wait
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_2
; %bb.3:
	mov	w21, #7
	mov	w22, #24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	lsr	w23, w22, w8
	mov	w20, #4
	bfi	w20, w23, #6, #1
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_outb
	ldr	w1, [x19, #8]
	mov	w0, #4
	bl	_wait
	mov	w0, #36
	bfi	w0, w23, #6, #1
	ldr	w1, [x19, #8]
	bl	_outb
	ldr	w1, [x19, #8]
	mov	w0, #4
	bl	_wait
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_outb
	ldr	w1, [x19, #8]
	mov	w0, #4
	bl	_wait
	sub	w21, w21, #1
	cmp	w21, #1
	b.hi	LBB0_4
; %bb.5:
	ldr	w1, [x19, #8]
	mov	w0, #4
	bl	_wait
	ldr	w1, [x19, #8]
	mov	w0, #20
	bl	_outb
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.fmr2_setvolume.vol
l___const.fmr2_setvolume.vol:
	.long	33                              ; 0x21
	.long	132                             ; 0x84
	.long	144                             ; 0x90
	.long	260                             ; 0x104
	.long	272                             ; 0x110
	.long	516                             ; 0x204
	.long	528                             ; 0x210
	.long	1026                            ; 0x402
	.long	1028                            ; 0x404
	.long	1032                            ; 0x408
	.long	1040                            ; 0x410
	.long	2049                            ; 0x801
	.long	2050                            ; 0x802
	.long	2052                            ; 0x804
	.long	2056                            ; 0x808
	.long	2064                            ; 0x810

	.no_dead_strip	_fmr2_setvolume
.subsections_via_symbols
