	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_volume_resolution
_check_volume_resolution:               ## @check_volume_resolution
	.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
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	movzwl	l___const.check_volume_resolution.cbit+4(%rip), %eax
	movw	%ax, -44(%rbp)
	movl	l___const.check_volume_resolution.cbit(%rip), %eax
	movl	%eax, -48(%rbp)
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.2:
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %ecx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rax), %ecx
	addq	$8, %rax
	testl	%ecx, %ecx
	jne	LBB0_3
LBB0_6:
	movb	$0, (%r14)
	movb	$0, (%r15)
	leaq	-48(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_18
## %bb.7:
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	leaq	-48(%rbp), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r13
	jge	LBB0_18
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	-48(%rbp,%r13,2), %eax
	movl	%eax, %edx
	shll	$8, %edx
	orl	%eax, %edx
	orl	$32896, %edx                    ## imm = 0x8080
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ac97_write
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ac97_read
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ac97_read
                                        ## kill: def $ax killed $ax def $eax
	movzbl	(%r15), %ecx
	testb	%cl, %cl
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ecx
	andl	$127, %ecx
	cmpw	-48(%rbp,%r13,2), %cx
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	l___const.check_volume_resolution.max(%rip), %rcx
	movzbl	(%r13,%rcx), %ecx
	movb	%cl, (%r15)
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	(%r14), %edx
	testb	%dl, %dl
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	testb	%cl, %cl
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	testb	%dl, %dl
	je	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	shrl	$8, %eax
	andl	$127, %eax
	cmpw	-48(%rbp,%r13,2), %ax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	l___const.check_volume_resolution.max(%rip), %rax
	movzbl	(%r13,%rax), %edx
	movb	%dl, (%r14)
	movzbl	(%r15), %ecx
	testb	%cl, %cl
	jne	LBB0_16
	jmp	LBB0_17
LBB0_4:
	movb	(%rax), %cl
	movb	%cl, (%r15)
	movb	1(%rax), %al
	movb	%al, (%r14)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	1                               ## @__const.check_volume_resolution.cbit
l___const.check_volume_resolution.cbit:
	.short	32                              ## 0x20
	.short	16                              ## 0x10
	.short	1                               ## 0x1

l___const.check_volume_resolution.max:  ## @__const.check_volume_resolution.max
	.ascii	"?\037\017"

	.no_dead_strip	_check_volume_resolution
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_volume_resolution
_check_volume_resolution:               ; @check_volume_resolution
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, l___const.check_volume_resolution.cbit@PAGE
Lloh1:
	add	x8, x8, l___const.check_volume_resolution.cbit@PAGEOFF
	ldr	w9, [x8]
	str	w9, [sp, #8]
	ldrh	w8, [x8, #4]
	strh	w8, [sp, #12]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.2:
	add	x8, x8, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w21
	b.eq	LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #4]
	add	x8, x8, #8
	cbnz	w9, LBB0_3
LBB0_5:
	strb	wzr, [x19]
	strb	wzr, [x20]
	add	x23, sp, #8
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.6:
	mov	x24, #0
	mov	w25, #32896
Lloh2:
	adrp	x26, l___const.check_volume_resolution.max@PAGE
Lloh3:
	add	x26, x26, l___const.check_volume_resolution.max@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w8, [x23, x24, lsl #1]
	orr	w8, w8, w8, lsl #8
	orr	w2, w8, w25
	mov	x0, x22
	mov	x1, x21
	bl	_snd_ac97_write
	mov	x0, x22
	mov	x1, x21
	bl	_snd_ac97_read
	mov	x0, x22
	mov	x1, x21
	bl	_snd_ac97_read
	ldrb	w8, [x20]
	cbnz	w8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	and	w8, w0, #0x7f
	ldrh	w9, [x23, x24, lsl #1]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x26, x24]
	strb	w8, [x20]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w9, [x19]
	cbz	w9, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w8, LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w9, LBB0_7
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #0
	ldrb	w9, [x19]
	cbnz	w9, LBB0_12
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	ubfx	w8, w0, #8, #7
	ldrh	w9, [x23, x24, lsl #1]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w9, [x26, x24]
	strb	w9, [x19]
	ldrb	w8, [x20]
	cbnz	w8, LBB0_13
	b	LBB0_7
LBB0_17:
	ldr	w9, [x8]
	strb	w9, [x20]
	ldr	w8, [x8]
	lsr	w8, w8, #8
	strb	w8, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	1                               ; @__const.check_volume_resolution.cbit
l___const.check_volume_resolution.cbit:
	.short	32                              ; 0x20
	.short	16                              ; 0x10
	.short	1                               ; 0x1

l___const.check_volume_resolution.max:  ; @__const.check_volume_resolution.max
	.ascii	"?\037\017"

	.no_dead_strip	_check_volume_resolution
.subsections_via_symbols
