	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_sgbuf_get_chunk_size       ## -- Begin function snd_sgbuf_get_chunk_size
	.p2align	4, 0x90
_snd_sgbuf_get_chunk_size:              ## @snd_sgbuf_get_chunk_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rdi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%esi, %r10d
	shrq	%cl, %r10
	leal	(%rsi,%rax), %r9d
	decl	%r9d
	shrl	%cl, %r9d
	movq	(%rdi), %r8
	movl	(%r8,%r10,4), %edi
	shrl	%cl, %edi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r10d
	cmpl	%r9d, %r10d
	ja	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%edi
	movl	%r10d, %edx
	movl	(%r8,%rdx,4), %edx
	shrl	%cl, %edx
	cmpl	%edx, %edi
	je	LBB0_1
## %bb.3:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r10d
	subl	%esi, %r10d
	movl	%r10d, %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_sgbuf_get_chunk_size       ; -- Begin function snd_sgbuf_get_chunk_size
	.p2align	2
_snd_sgbuf_get_chunk_size:              ; @snd_sgbuf_get_chunk_size
	.cfi_startproc
; %bb.0:
	ldr	x11, [x0]
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, w1
	lsr	x9, x9, x8
	add	w10, w1, w2
	sub	w10, w10, #1
	lsr	w10, w10, w8
	ldr	x11, [x11]
	ldr	w12, [x11, x9, lsl #2]
	lsr	w12, w12, w8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w9, #1
	cmp	w9, w10
	b.hi	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w12, w12, #1
	ldr	w13, [x11, w9, uxtw #2]
	lsr	w13, w13, w8
	cmp	w12, w13
	b.eq	LBB0_1
; %bb.3:
	lsl	w8, w9, w8
	sub	w2, w8, w1
LBB0_4:
	mov	x0, x2
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
.subsections_via_symbols
