	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, (%rdi)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_CI_BSD_COMPRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_BSD_VERSION
	movq	_BSD_CURRENT_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_BSD_NBITS
	movl	%eax, %r14d
	leal	-16(%r14), %eax
	cmpl	$-7, %eax
	jb	LBB0_7
## %bb.9:
	movl	%r14d, %edi
	callq	_MAXCODE
	movl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	%rax, %r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r15d
	addl	$-9, %r15d
	leaq	_bsd_alloc.htab(%rip), %rax
	movl	(%rax,%r15,8), %ecx
	movq	_IPPP_COMP_FLAG_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	16(%rbx), %r13d
	movl	%r13d, (%r12)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(,%rcx,4), %ebx
	movl	%ebx, %edi
	callq	_vmalloc
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.12:
	movq	$0, 24(%r12)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_14:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	leal	4(,%r13,4), %edi
	callq	_vmalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	leaq	_bsd_alloc.htab(%rip), %rax
	movl	4(%rax,%r15,8), %eax
	addl	$40, %ebx
	movl	%ebx, 4(%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, 8(%r12)
	movl	%eax, 12(%r12)
	movl	%r13d, 16(%r12)
	movl	%r14d, 20(%r12)
	jmp	LBB0_8
LBB0_16:
	movq	%r12, %rdi
	callq	_bsd_free
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @bsd_alloc.htab
_bsd_alloc.htab:
	.long	5003                            ## 0x138b
	.long	4                               ## 0x4
	.long	5003                            ## 0x138b
	.long	4                               ## 0x4
	.long	5003                            ## 0x138b
	.long	4                               ## 0x4
	.long	5003                            ## 0x138b
	.long	4                               ## 0x4
	.long	9001                            ## 0x2329
	.long	5                               ## 0x5
	.long	18013                           ## 0x465d
	.long	6                               ## 0x6
	.long	35023                           ## 0x88cf
	.long	7                               ## 0x7
	.long	69001                           ## 0x10d89
	.long	8                               ## 0x8

	.comm	_CI_BSD_COMPRESS,8,3            ## @CI_BSD_COMPRESS
	.comm	_BSD_CURRENT_VERSION,8,3        ## @BSD_CURRENT_VERSION
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IPPP_COMP_FLAG_XMIT,4,2        ## @IPPP_COMP_FLAG_XMIT
	.no_dead_strip	_bsd_alloc
.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _CI_BSD_COMPRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CI_BSD_COMPRESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
	ldr	x8, [x21, #24]
	ldr	w0, [x8]
	bl	_BSD_VERSION
Lloh3:
	adrp	x8, _BSD_CURRENT_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BSD_CURRENT_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.3:
	ldr	x8, [x21, #24]
	ldr	w0, [x8]
	bl	_BSD_NBITS
	sub	w8, w0, #16
	cmn	w8, #7
	b.lo	LBB0_11
; %bb.4:
	mov	x20, x0
	bl	_MAXCODE
	mov	x22, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.5:
	sub	w8, w20, #9
Lloh9:
	adrp	x9, _bsd_alloc.htab@PAGE
Lloh10:
	add	x9, x9, _bsd_alloc.htab@PAGEOFF
	ldr	d0, [x9, w8, uxtw #3]
Lloh11:
	adrp	x8, _IPPP_COMP_FLAG_XMIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPPP_COMP_FLAG_XMIT@GOTPAGEOFF]
	ldr	w9, [x21, #16]
Lloh13:
	ldr	w8, [x8]
	and	w23, w8, w9
	str	w23, [x19]
	str	q0, [sp]                        ; 16-byte Folded Spill
	fmov	w8, s0
	lsl	w21, w8, #2
	mov	x0, x21
	bl	_vmalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_10
; %bb.6:
	cbz	w23, LBB0_8
; %bb.7:
	str	xzr, [x19, #24]
	b	LBB0_9
LBB0_8:
	lsl	w8, w22, #2
	add	w0, w8, #4
	bl	_vmalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_10
LBB0_9:
	add	w8, w21, #40
	str	w8, [x19, #4]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	d0, [x19, #8]
	stp	w22, w20, [x19, #16]
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_bsd_free
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @bsd_alloc.htab
_bsd_alloc.htab:
	.long	5003                            ; 0x138b
	.long	4                               ; 0x4
	.long	5003                            ; 0x138b
	.long	4                               ; 0x4
	.long	5003                            ; 0x138b
	.long	4                               ; 0x4
	.long	5003                            ; 0x138b
	.long	4                               ; 0x4
	.long	9001                            ; 0x2329
	.long	5                               ; 0x5
	.long	18013                           ; 0x465d
	.long	6                               ; 0x6
	.long	35023                           ; 0x88cf
	.long	7                               ; 0x7
	.long	69001                           ; 0x10d89
	.long	8                               ; 0x8

	.comm	_CI_BSD_COMPRESS,8,3            ; @CI_BSD_COMPRESS
	.comm	_BSD_CURRENT_VERSION,8,3        ; @BSD_CURRENT_VERSION
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IPPP_COMP_FLAG_XMIT,4,2        ; @IPPP_COMP_FLAG_XMIT
	.no_dead_strip	_bsd_alloc
.subsections_via_symbols
