	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_us428ctls_mmap
_snd_us428ctls_mmap:                    ## @snd_us428ctls_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
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_5:
	cmpq	$0, 8(%r12)
	jne	LBB0_9
## %bb.6:
	leaq	16(%r12), %rdi
	callq	_init_waitqueue_head
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_snd_malloc_pages
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rdi
	movl	$-1, %esi
	movl	$4, %edx
	callq	_memset
	movq	8(%r12), %rax
	movl	$-2, (%rax)
LBB0_9:
	movq	_us428ctls_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
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.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	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_us428ctls_vm_ops,4,2           ## @us428ctls_vm_ops
	.comm	_VM_RESERVED,4,2                ## @VM_RESERVED
	.comm	_VM_DONTEXPAND,4,2              ## @VM_DONTEXPAND
	.no_dead_strip	_snd_us428ctls_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_us428ctls_mmap
_snd_us428ctls_mmap:                    ; @snd_us428ctls_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_5
; %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_4
LBB0_3:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_8
; %bb.6:
	add	x0, x22, #16
	bl	_init_waitqueue_head
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_snd_malloc_pages
	str	x0, [x22, #8]
	cbz	x0, LBB0_10
; %bb.7:
	mov	w1, #-1
	mov	w2, #4
	bl	_memset
	ldr	x8, [x22, #8]
	mov	w9, #-2
	str	w9, [x8]
LBB0_8:
	mov	w0, #0
Lloh12:
	adrp	x8, _us428ctls_vm_ops@GOTPAGE
Lloh13:
	ldr	x8, [x8, _us428ctls_vm_ops@GOTPAGEOFF]
Lloh14:
	adrp	x9, _VM_RESERVED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VM_RESERVED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _VM_DONTEXPAND@GOTPAGE
Lloh18:
	ldr	x10, [x10, _VM_DONTEXPAND@GOTPAGEOFF]
Lloh19:
	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]
LBB0_9:
	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
LBB0_10:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.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	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_us428ctls_vm_ops,4,2           ; @us428ctls_vm_ops
	.comm	_VM_RESERVED,4,2                ; @VM_RESERVED
	.comm	_VM_DONTEXPAND,4,2              ; @VM_DONTEXPAND
	.no_dead_strip	_snd_us428ctls_mmap
.subsections_via_symbols
