	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l1oip_4bit_alloc               ## -- Begin function l1oip_4bit_alloc
	.p2align	4, 0x90
_l1oip_4bit_alloc:                      ## @l1oip_4bit_alloc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_table_dec@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	jne	LBB0_16
## %bb.1:
	movl	%edi, %r15d
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_vzalloc
	movq	_table_com@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movl	$512, %edi                      ## imm = 0x200
	callq	_vzalloc
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.2:
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	xorl	%r10d, %r10d
	movq	_ulaw_to_4bit@GOTPCREL(%rip), %r9
	movq	_alaw_to_4bit@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%r9, %rdx
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r8, %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdx), %rdx
	movl	(%rdx,%r10,4), %r11d
	movl	%r11d, %r14d
	shll	$4, %r14d
	movl	%r10d, %ebx
	shll	$8, %ebx
	xorl	%edx, %edx
	movl	$256, %esi                      ## imm = 0x100
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %edi
	orl	%ebx, %edi
	movslq	%edi, %rdi
	orl	%r14d, (%rcx,%rdi,4)
	leal	-256(%rsi), %edi
	orl	%r10d, %edi
	orl	%r11d, (%rcx,%rdi,4)
	leal	1(%rdx), %edi
	orl	%ebx, %edi
	movslq	%edi, %rdi
	orl	%r14d, (%rcx,%rdi,4)
	movl	%esi, %edi
	orl	%r10d, %edi
	orl	%r11d, (%rcx,%rdi,4)
	addl	$512, %esi                      ## imm = 0x200
	addl	$2, %edx
	cmpl	$256, %edx                      ## imm = 0x100
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r10
	cmpq	$256, %r10                      ## imm = 0x100
	jne	LBB0_4
## %bb.9:
	xorl	%r10d, %r10d
	movq	__4bit_to_ulaw@GOTPCREL(%rip), %r9
	movq	__4bit_to_alaw@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%r9, %rcx
	testl	%r15d, %r15d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r8, %rcx
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rcx), %rcx
	movl	(%rcx,%r10,4), %r11d
	movl	%r11d, %edi
	shll	$8, %edi
	movl	%r10d, %ebx
	shll	$4, %ebx
	xorl	%edx, %edx
	movl	$16, %ecx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %esi
	orl	%ebx, %esi
	movslq	%esi, %rsi
	orl	%edi, (%rax,%rsi,4)
	leal	-16(%rcx), %esi
	orl	%r10d, %esi
	orl	%r11d, (%rax,%rsi,4)
	leal	1(%rdx), %esi
	orl	%ebx, %esi
	movslq	%esi, %rsi
	orl	%edi, (%rax,%rsi,4)
	movl	%ecx, %esi
	orl	%r10d, %esi
	orl	%r11d, (%rax,%rsi,4)
	addl	$32, %ecx
	addl	$2, %edx
	cmpl	$16, %edx
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r10
	cmpq	$16, %r10
	jne	LBB0_10
## %bb.15:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_17:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_l1oip_4bit_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_table_dec,8,3                  ## @table_dec
	.comm	_table_com,8,3                  ## @table_com
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ulaw_to_4bit,8,3               ## @ulaw_to_4bit
	.comm	_alaw_to_4bit,8,3               ## @alaw_to_4bit
	.comm	__4bit_to_ulaw,8,3              ## @_4bit_to_ulaw
	.comm	__4bit_to_alaw,8,3              ## @_4bit_to_alaw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l1oip_4bit_alloc               ; -- Begin function l1oip_4bit_alloc
	.p2align	2
_l1oip_4bit_alloc:                      ; @l1oip_4bit_alloc
	.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
Lloh0:
	adrp	x20, _table_dec@GOTPAGE
Lloh1:
	ldr	x20, [x20, _table_dec@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_11
; %bb.1:
	mov	x19, x0
	mov	w0, #65536
	bl	_vzalloc
Lloh2:
	adrp	x21, _table_com@GOTPAGE
Lloh3:
	ldr	x21, [x21, _table_com@GOTPAGEOFF]
	str	x0, [x21]
	mov	w0, #512
	bl	_vzalloc
	str	x0, [x20]
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_3
; %bb.2:
	bl	_l1oip_4bit_free
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_3:
	mov	x9, #0
Lloh7:
	adrp	x10, _ulaw_to_4bit@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ulaw_to_4bit@GOTPAGEOFF]
Lloh9:
	adrp	x11, _alaw_to_4bit@GOTPAGE
Lloh10:
	ldr	x11, [x11, _alaw_to_4bit@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	w12, #0
	mov	w13, #0
	cmp	w19, #0
	csel	x14, x11, x10, eq
	ldr	x14, [x14]
	ldr	w14, [x14, x9, lsl #2]
	lsl	w15, w14, #4
	lsl	w16, w9, #8
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	orr	w17, w13, w16
	sbfiz	x17, x17, #2, #32
	ldr	w1, [x8, x17]
	orr	w1, w1, w15
	str	w1, [x8, x17]
	orr	w17, w12, w9
	lsl	x17, x17, #2
	ldr	w1, [x8, x17]
	orr	w1, w1, w14
	str	w1, [x8, x17]
	add	w13, w13, #1
	add	w12, w12, #256
	cmp	w13, #256
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, #256
	b.ne	LBB0_4
; %bb.7:
	mov	x8, #0
Lloh11:
	adrp	x9, __4bit_to_ulaw@GOTPAGE
Lloh12:
	ldr	x9, [x9, __4bit_to_ulaw@GOTPAGEOFF]
Lloh13:
	adrp	x10, __4bit_to_alaw@GOTPAGE
Lloh14:
	ldr	x10, [x10, __4bit_to_alaw@GOTPAGEOFF]
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	w11, #0
	mov	w12, #0
	cmp	w19, #0
	csel	x13, x10, x9, eq
	ldr	x13, [x13]
	ldr	w13, [x13, x8, lsl #2]
	lsl	w14, w13, #8
	lsl	w15, w8, #4
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	orr	w16, w12, w15
	sbfiz	x16, x16, #2, #32
	ldr	w17, [x0, x16]
	orr	w17, w17, w14
	str	w17, [x0, x16]
	orr	w16, w11, w8
	lsl	x16, x16, #2
	ldr	w17, [x0, x16]
	orr	w17, w17, w13
	str	w17, [x0, x16]
	add	w12, w12, #1
	add	w11, w11, #16
	cmp	w12, #16
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	cmp	x8, #16
	b.ne	LBB0_8
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_table_dec,8,3                  ; @table_dec
	.comm	_table_com,8,3                  ; @table_com
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ulaw_to_4bit,8,3               ; @ulaw_to_4bit
	.comm	_alaw_to_4bit,8,3               ; @alaw_to_4bit
	.comm	__4bit_to_ulaw,8,3              ; @_4bit_to_ulaw
	.comm	__4bit_to_alaw,8,3              ; @_4bit_to_alaw
.subsections_via_symbols
