	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsd_alloc
_bsd_alloc:                             ## @bsd_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	%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
	cmpl	$3, %esi
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movb	(%rdi), %al
	movq	_CI_BSD_COMPRESS@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_10
## %bb.2:
	cmpb	$3, 1(%rbx)
	jne	LBB0_10
## %bb.3:
	movl	%edx, %r15d
	movzbl	2(%rbx), %edi
	callq	_BSD_VERSION
	movq	_BSD_CURRENT_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.4:
	movzbl	2(%rbx), %edi
	callq	_BSD_NBITS
	movl	%eax, %r14d
	leal	-9(%r14), %r12d
	cmpl	$6, %r12d
	ja	LBB0_10
## %bb.5:
	movl	%r14d, %edi
	callq	_MAXCODE
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	movslq	%r12d, %r12
	leaq	l_switch.table.bsd_alloc.1(%rip), %rax
	movl	(%rax,%r12,4), %r13d
	movl	%r13d, %edi
	movl	$4, %esi
	callq	_array_size
	movl	%eax, %edi
	callq	_vmalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.8:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leal	1(%r15), %esi
	movl	$4, %edi
	callq	_array_size
	movl	%eax, %edi
	callq	_vmalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_17
LBB0_9:
	movq	%rbx, %rdi
	callq	_bsd_free
LBB0_10:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	$0, 24(%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_17:
	leaq	l_switch.table.bsd_alloc(%rip), %rax
	movl	(%rax,%r12,4), %eax
	leal	40(,%r13,4), %ecx
	movl	%ecx, (%rbx)
	movl	%r13d, 4(%rbx)
	movl	%eax, 8(%rbx)
	movl	%r15d, 12(%rbx)
	movl	%r14d, 16(%rbx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_CI_BSD_COMPRESS,1,0            ## @CI_BSD_COMPRESS
	.comm	_BSD_CURRENT_VERSION,8,3        ## @BSD_CURRENT_VERSION
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_bsd_alloc
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.bsd_alloc
l_switch.table.bsd_alloc:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	7                               ## 0x7

	.p2align	2                               ## @switch.table.bsd_alloc.1
l_switch.table.bsd_alloc.1:
	.long	5003                            ## 0x138b
	.long	5003                            ## 0x138b
	.long	5003                            ## 0x138b
	.long	5003                            ## 0x138b
	.long	9001                            ## 0x2329
	.long	18013                           ## 0x465d
	.long	35023                           ## 0x88cf

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsd_alloc
_bsd_alloc:                             ; @bsd_alloc
	.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
	cmp	w1, #3
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
Lloh0:
	adrp	x9, _CI_BSD_COMPRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CI_BSD_COMPRESS@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.2:
	ldrb	w8, [x19, #1]
	cmp	w8, #3
	b.ne	LBB0_10
; %bb.3:
	mov	x21, x2
	ldrb	w0, [x19, #2]
	bl	_BSD_VERSION
Lloh2:
	adrp	x8, _BSD_CURRENT_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BSD_CURRENT_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:
	ldrb	w0, [x19, #2]
	bl	_BSD_NBITS
	sub	w23, w0, #9
	cmp	w23, #6
	b.hi	LBB0_10
; %bb.5:
	mov	x20, x0
	bl	_MAXCODE
	mov	x22, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.6:
	sbfiz	x24, x23, #2, #32
Lloh8:
	adrp	x8, l_switch.table.bsd_alloc.1@PAGE
Lloh9:
	add	x8, x8, l_switch.table.bsd_alloc.1@PAGEOFF
	ldr	w23, [x8, x24]
	mov	x0, x23
	mov	w1, #4
	bl	_array_size
	bl	_vmalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.7:
	cbz	w21, LBB0_12
; %bb.8:
	add	w1, w22, #1
	mov	w0, #4
	bl	_array_size
	bl	_vmalloc
	str	x0, [x19, #24]
	cbnz	x0, LBB0_13
LBB0_9:
	mov	x0, x19
	bl	_bsd_free
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, 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
	ret
LBB0_12:
	str	xzr, [x19, #24]
LBB0_13:
Lloh10:
	adrp	x8, l_switch.table.bsd_alloc@PAGE
Lloh11:
	add	x8, x8, l_switch.table.bsd_alloc@PAGEOFF
	ldr	w8, [x8, x24]
	lsl	w9, w23, #2
	add	w9, w9, #40
	stp	w9, w23, [x19]
	stp	w8, w22, [x19, #8]
	str	w20, [x19, #16]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CI_BSD_COMPRESS,1,0            ; @CI_BSD_COMPRESS
	.comm	_BSD_CURRENT_VERSION,8,3        ; @BSD_CURRENT_VERSION
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_bsd_alloc
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.bsd_alloc
l_switch.table.bsd_alloc:
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	7                               ; 0x7

	.p2align	2                               ; @switch.table.bsd_alloc.1
l_switch.table.bsd_alloc.1:
	.long	5003                            ; 0x138b
	.long	5003                            ; 0x138b
	.long	5003                            ; 0x138b
	.long	5003                            ; 0x138b
	.long	9001                            ; 0x2329
	.long	18013                           ; 0x465d
	.long	35023                           ; 0x88cf

.subsections_via_symbols
