	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_mmap_data              ## -- Begin function snd_pcm_mmap_data
	.p2align	4, 0x90
_snd_pcm_mmap_data:                     ## @snd_pcm_mmap_data
	.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	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rdx
	movl	(%r14), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.1:
	movq	_VM_WRITE@GOTPCREL(%rip), %rcx
	movq	_VM_READ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_5
	jmp	LBB0_2
LBB0_4:
	movq	_VM_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_5:
	movq	16(%rbx), %rax
	movq	24(%rax), %rcx
	movq	(%rcx), %rcx
	movq	_SNDRV_PCM_STATE_OPEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movq	_EBADFD@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_7:
	movq	_SNDRV_PCM_INFO_MMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.9:
	movq	8(%rax), %rcx
	movq	_SNDRV_PCM_ACCESS_RW_INTERLEAVED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.10:
	movq	_SNDRV_PCM_ACCESS_RW_NONINTERLEAVED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.11:
	movq	8(%r14), %r13
	subq	16(%r14), %r13
	movq	24(%r14), %r12
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movl	16(%rax), %edi
	callq	_PAGE_ALIGN
	subq	%r13, %rax
	jb	LBB0_2
## %bb.12:
	movl	%r15d, %ecx
	shlq	%cl, %r12
	cmpq	%rax, %r12
	jbe	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_13:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_lib_default_mmap       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_VM_WRITE,4,2                   ## @VM_WRITE
	.comm	_VM_READ,4,2                    ## @VM_READ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_PCM_STATE_OPEN,8,3       ## @SNDRV_PCM_STATE_OPEN
	.comm	_EBADFD,4,2                     ## @EBADFD
	.comm	_SNDRV_PCM_INFO_MMAP,4,2        ## @SNDRV_PCM_INFO_MMAP
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_PCM_ACCESS_RW_INTERLEAVED,8,3 ## @SNDRV_PCM_ACCESS_RW_INTERLEAVED
	.comm	_SNDRV_PCM_ACCESS_RW_NONINTERLEAVED,8,3 ## @SNDRV_PCM_ACCESS_RW_NONINTERLEAVED
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_mmap_data              ; -- Begin function snd_pcm_mmap_data
	.p2align	2
_snd_pcm_mmap_data:                     ; @snd_pcm_mmap_data
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	w8, [x2]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _VM_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _VM_READ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VM_READ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_3
	b	LBB0_9
LBB0_2:
Lloh9:
	adrp	x9, _VM_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VM_READ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	x9, [x8, #24]
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _SNDRV_PCM_STATE_OPEN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SNDRV_PCM_STATE_OPEN@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _EBADFD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	ldr	w9, [x8]
Lloh17:
	adrp	x10, _SNDRV_PCM_INFO_MMAP@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SNDRV_PCM_INFO_MMAP@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.6:
	ldr	x9, [x8, #8]
Lloh20:
	adrp	x10, _SNDRV_PCM_ACCESS_RW_INTERLEAVED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SNDRV_PCM_ACCESS_RW_INTERLEAVED@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
Lloh23:
	adrp	x11, _SNDRV_PCM_ACCESS_RW_NONINTERLEAVED@GOTPAGE
Lloh24:
	ldr	x11, [x11, _SNDRV_PCM_ACCESS_RW_NONINTERLEAVED@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.eq	LBB0_9
; %bb.7:
	ldp	x9, x10, [x19, #8]
	sub	x23, x9, x10
	ldr	x21, [x19, #24]
Lloh26:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	x22, [x9]
	ldr	w0, [x8, #16]
	bl	_PAGE_ALIGN
	subs	x8, x0, x23
	b.lo	LBB0_9
; %bb.8:
	lsl	x9, x21, x22
	cmp	x9, x8
	b.ls	LBB0_12
LBB0_9:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_11:
Lloh31:
	adrp	x8, _ENXIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_12:
	ldr	x8, [x20, #8]
	ldr	x2, [x8]
	cbz	x2, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	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
	br	x2
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	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
	b	_snd_pcm_lib_default_mmap
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_VM_WRITE,4,2                   ; @VM_WRITE
	.comm	_VM_READ,4,2                    ; @VM_READ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_PCM_STATE_OPEN,8,3       ; @SNDRV_PCM_STATE_OPEN
	.comm	_EBADFD,4,2                     ; @EBADFD
	.comm	_SNDRV_PCM_INFO_MMAP,4,2        ; @SNDRV_PCM_INFO_MMAP
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_PCM_ACCESS_RW_INTERLEAVED,8,3 ; @SNDRV_PCM_ACCESS_RW_INTERLEAVED
	.comm	_SNDRV_PCM_ACCESS_RW_NONINTERLEAVED,8,3 ; @SNDRV_PCM_ACCESS_RW_NONINTERLEAVED
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
.subsections_via_symbols
