	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_chunk
_get_chunk:                             ## @get_chunk
	.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	_GET_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, (%rcx)
	movl	$-1, (%rdx)
	movl	(%rsi), %r14d
	cmpl	%edi, %r14d
	jle	LBB0_15
## %bb.1:
	movq	8(%rsi), %r11
	movq	_ISO_PKT_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r9
	movslq	%edi, %r10
	movq	%r10, %rdi
	shlq	$4, %rdi
	leaq	(%r11,%rdi), %r15
	addq	$8, %r15
	movq	_EOVERFLOW@GOTPCREL(%rip), %r11
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8), %r12d
	leal	1(%r12), %ebx
	movl	%ebx, (%r8)
	movslq	(%rsi), %r14
	imulq	$1431655766, %r14, %rbx         ## imm = 0x55555556
	movq	%rbx, %rdi
	shrq	$63, %rdi
	shrq	$32, %rbx
	addl	%edi, %ebx
	cmpl	%ebx, %r12d
	jge	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	movslq	%r14d, %rdi
	addq	$16, %r15
	cmpq	%rdi, %r10
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ebx
	movl	(%r11), %edi
	addl	%ebx, %edi
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	je	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, (%rdx)
	je	LBB0_13
	jmp	LBB0_21
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%r15), %rbx
	testq	%rbx, %rbx
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r9, %rbx
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, (%rdx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, (%rdx)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, (%rcx)
	movl	(%rsi), %r14d
	jmp	LBB0_13
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	jge	LBB0_13
## %bb.18:
	cmpl	$-1, (%rdx)
	jne	LBB0_21
## %bb.19:
	movl	%r10d, (%rdx)
	movl	%r10d, (%rcx)
	movq	_GET_TRAILER@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_14:
	cmpl	$-1, (%rdx)
	jne	LBB0_21
LBB0_15:
	cmpl	$-1, (%rcx)
	jne	LBB0_21
## %bb.16:
	movq	_GET_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_4:
	movq	_GET_TOO_MUCH_BUBBLE@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GET_SUCCESS,4,2                ## @GET_SUCCESS
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_GET_TOO_MUCH_BUBBLE,4,2        ## @GET_TOO_MUCH_BUBBLE
	.comm	_ISO_PKT_SIZE,8,3               ## @ISO_PKT_SIZE
	.comm	_GET_TRAILER,4,2                ## @GET_TRAILER
	.comm	_GET_NONE,4,2                   ## @GET_NONE
	.no_dead_strip	_get_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_chunk
_get_chunk:                             ; @get_chunk
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w9, #-1
Lloh0:
	adrp	x10, _GET_SUCCESS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GET_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x10]
	str	w9, [x3]
	str	w9, [x2]
	ldr	w11, [x1]
	cmp	w11, w8
	b.le	LBB0_17
; %bb.1:
	ldr	x12, [x1, #8]
Lloh3:
	adrp	x9, _ISO_PKT_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISO_PKT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
	sxtw	x9, w8
	add	x8, x12, w8, sxtw #4
	add	x8, x8, #8
Lloh6:
	adrp	x12, _EOVERFLOW@GOTPAGE
Lloh7:
	ldr	x12, [x12, _EOVERFLOW@GOTPAGEOFF]
	mov	w13, #21846
	movk	w13, #21845, lsl #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x4]
	add	w11, w14, #1
	str	w11, [x4]
	ldrsw	x11, [x1]
	mul	x15, x11, x13
	lsr	x16, x15, #63
	lsr	x15, x15, #32
	add	w15, w15, w16
	cmp	w14, w15
	b.ge	LBB0_18
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	x8, x8, #16
	cmp	x9, w11, sxtw
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x12]
	ldr	w14, [x8]
	cmn	w14, w15
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w14, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x14, [x8, #-8]
	cmp	x14, #1
	ccmp	x14, x10, #0, ge
	b.le	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x2]
	cmn	w14, #1
	b.eq	LBB0_3
	b	LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x14, x10
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x2]
	cmn	w11, #1
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x2]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x3]
	ldr	w11, [x1]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	b.ge	LBB0_3
; %bb.13:
	ldr	w8, [x2]
	cmn	w8, #1
	b.ne	LBB0_16
; %bb.14:
	str	w9, [x2]
	str	w9, [x3]
Lloh8:
	adrp	x8, _GET_TRAILER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GET_TRAILER@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
	ldr	w8, [x2]
	cmn	w8, #1
	b.eq	LBB0_17
LBB0_16:
	ret
LBB0_17:
	ldr	w8, [x3]
Lloh10:
	adrp	x9, _GET_NONE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GET_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmn	w8, #1
	csel	w0, w9, w0, eq
	ret
LBB0_18:
Lloh13:
	adrp	x8, _GET_TOO_MUCH_BUBBLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GET_TOO_MUCH_BUBBLE@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GET_SUCCESS,4,2                ; @GET_SUCCESS
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_GET_TOO_MUCH_BUBBLE,4,2        ; @GET_TOO_MUCH_BUBBLE
	.comm	_ISO_PKT_SIZE,8,3               ; @ISO_PKT_SIZE
	.comm	_GET_TRAILER,4,2                ; @GET_TRAILER
	.comm	_GET_NONE,4,2                   ; @GET_NONE
	.no_dead_strip	_get_chunk
.subsections_via_symbols
