	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usX2Y_hwdep_pcm_mmap
_snd_usX2Y_hwdep_pcm_mmap:              ## @snd_usX2Y_hwdep_pcm_mmap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	_USX2Y_STAT_CHIP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	32(%rdx), %rbx
	subq	24(%rdx), %rbx
	movl	$4, %edi
	callq	_PAGE_ALIGN
	cmpq	%rax, %rbx
	jbe	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	$4, %edx
	movq	%rbx, %rsi
	callq	_snd_printd
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	cmpl	$0, 4(%r12)
	je	LBB0_6
## %bb.7:
	movq	_snd_usX2Y_hwdep_pcm_vm_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_VM_RESERVED@GOTPCREL(%rip), %rax
	movq	_VM_DONTEXPAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	movq	(%r14), %rax
	movq	%rax, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USX2Y_STAT_CHIP_INIT,4,2       ## @USX2Y_STAT_CHIP_INIT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu > %lu\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_snd_usX2Y_hwdep_pcm_vm_ops,4,2 ## @snd_usX2Y_hwdep_pcm_vm_ops
	.comm	_VM_RESERVED,4,2                ## @VM_RESERVED
	.comm	_VM_DONTEXPAND,4,2              ## @VM_DONTEXPAND
	.no_dead_strip	_snd_usX2Y_hwdep_pcm_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_usX2Y_hwdep_pcm_mmap
_snd_usX2Y_hwdep_pcm_mmap:              ; @snd_usX2Y_hwdep_pcm_mmap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x22, [x0]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _USX2Y_STAT_CHIP_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USX2Y_STAT_CHIP_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	ldp	x9, x8, [x2, #24]
	sub	x21, x8, x9
	mov	w0, #4
	bl	_PAGE_ALIGN
	cmp	x21, x0
	b.ls	LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	w2, #4
	bl	_snd_printd
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_6
; %bb.5:
	mov	w0, #0
Lloh9:
	adrp	x8, _snd_usX2Y_hwdep_pcm_vm_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _snd_usX2Y_hwdep_pcm_vm_ops@GOTPAGEOFF]
Lloh11:
	adrp	x9, _VM_RESERVED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VM_RESERVED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _VM_DONTEXPAND@GOTPAGE
Lloh15:
	ldr	x10, [x10, _VM_DONTEXPAND@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x19]
	orr	w9, w9, w10
	str	w9, [x19]
	ldr	x9, [x20]
	stp	x9, x8, [x19, #8]
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_USX2Y_STAT_CHIP_INIT,4,2       ; @USX2Y_STAT_CHIP_INIT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu > %lu\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_snd_usX2Y_hwdep_pcm_vm_ops,4,2 ; @snd_usX2Y_hwdep_pcm_vm_ops
	.comm	_VM_RESERVED,4,2                ; @VM_RESERVED
	.comm	_VM_DONTEXPAND,4,2              ; @VM_DONTEXPAND
	.no_dead_strip	_snd_usX2Y_hwdep_pcm_mmap
.subsections_via_symbols
