	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_hw_mmap_status
_pcm_hw_mmap_status:                    ## @pcm_hw_mmap_status
	.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
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r12
	movq	__SC_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movl	%eax, %r14d
	movslq	%eax, %r15
	movq	_PROT_READ@GOTPCREL(%rip), %rdx
	movq	_MAP_FILE@GOTPCREL(%rip), %rax
	movq	_MAP_SHARED@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	movl	(%rdx), %edx
	movl	24(%r12), %r8d
	movq	_SNDRV_PCM_MMAP_OFFSET_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_mmap
	movq	_MAP_FAILED@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	cmoveq	%rbx, %rax
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r13), %ecx
	movq	_MAP_FILE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	24(%r12), %r8d
	movq	_SNDRV_PCM_MMAP_OFFSET_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_mmap
	movq	%rax, (%r12)
	movq	_MAP_FAILED@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	cmoveq	%rbx, %rax
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movl	$1, (%rax)
	jmp	LBB0_7
LBB0_3:
	movq	16(%r12), %rdi
	movl	%r14d, %esi
	callq	_munmap
	movq	$0, 16(%r12)
LBB0_4:
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rcx
	addq	$4, %rcx
	movq	%rcx, 16(%r12)
	movq	%rax, (%r12)
	movl	$1, (%rax)
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_pcm_sync_ptr
	jmp	LBB0_7
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_PAGE_SIZE,4,2              ## @_SC_PAGE_SIZE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_FILE,4,2                   ## @MAP_FILE
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_SNDRV_PCM_MMAP_OFFSET_STATUS,4,2 ## @SNDRV_PCM_MMAP_OFFSET_STATUS
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_SNDRV_PCM_MMAP_OFFSET_CONTROL,4,2 ## @SNDRV_PCM_MMAP_OFFSET_CONTROL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pcm_hw_mmap_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_hw_mmap_status
_pcm_hw_mmap_status:                    ; @pcm_hw_mmap_status
	.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	x8, [x0, #8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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_3:
	mov	x19, x0
Lloh0:
	adrp	x8, __SC_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
Lloh3:
	adrp	x24, _PROT_READ@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PROT_READ@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh5:
	adrp	x21, _MAP_FILE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MAP_FILE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh7:
	adrp	x22, _MAP_SHARED@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MAP_SHARED@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w3, w9, w8
	ldr	w4, [x19, #24]
Lloh9:
	adrp	x8, _SNDRV_PCM_MMAP_OFFSET_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNDRV_PCM_MMAP_OFFSET_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, #0
	mov	x1, x20
	bl	_mmap
Lloh12:
	adrp	x23, _MAP_FAILED@GOTPAGE
Lloh13:
	ldr	x23, [x23, _MAP_FAILED@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x0
	csel	x8, xzr, x0, eq
	str	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w8, [x24]
Lloh14:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w3, w9, w8
	ldr	w4, [x19, #24]
Lloh17:
	adrp	x8, _SNDRV_PCM_MMAP_OFFSET_CONTROL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SNDRV_PCM_MMAP_OFFSET_CONTROL@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	mov	x0, #0
	mov	x1, x20
	bl	_mmap
	str	x0, [x19]
	ldr	x8, [x23]
	cmp	x8, x0
	csel	x8, xzr, x0, eq
	str	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #0
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_2
LBB0_6:
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_munmap
	str	xzr, [x19, #16]
LBB0_7:
	mov	w20, #1
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.8:
	mov	x8, x0
	str	w20, [x8], #4
	str	x8, [x19, #16]
	str	x0, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_pcm_sync_ptr
	b	LBB0_1
LBB0_9:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_PAGE_SIZE,4,2              ; @_SC_PAGE_SIZE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_FILE,4,2                   ; @MAP_FILE
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_SNDRV_PCM_MMAP_OFFSET_STATUS,4,2 ; @SNDRV_PCM_MMAP_OFFSET_STATUS
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_SNDRV_PCM_MMAP_OFFSET_CONTROL,4,2 ; @SNDRV_PCM_MMAP_OFFSET_CONTROL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pcm_hw_mmap_status
.subsections_via_symbols
