	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_alloc
_cmd_alloc:                             ## @cmd_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
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rdi
	movl	(%r15), %esi
	callq	_find_first_zero_bit
	cmpl	(%r15), %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	movl	(%r12), %ecx
	leal	-1(%rcx), %edi
	andl	%eax, %edi
	cltd
	idivl	%ecx
	movslq	%eax, %rsi
	addq	48(%r15), %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	40(%r15), %r12
	movslq	%ebx, %rax
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %r13
	leaq	(%r12,%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	32(%r15), %r14
	addq	%r13, %r14
	movq	24(%r15), %rdi
	addq	%r13, %rdi
	movq	%rdi, 40(%r12,%r13)
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	incl	8(%r15)
	movl	%ebx, (%r12,%r13)
	leaq	(%r12,%r13), %rdi
	addq	$32, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, 24(%r12,%r13)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	$4, 8(%r12,%r13)
	movl	4(%r15), %eax
	movl	%eax, 4(%r12,%r13)
LBB0_4:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.no_dead_strip	_cmd_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_alloc
_cmd_alloc:                             ; @cmd_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
	mov	x19, x0
Lloh0:
	adrp	x21, _BITS_PER_LONG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BITS_PER_LONG@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #48]
	ldr	w1, [x19]
	bl	_find_first_zero_bit
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	ldr	w8, [x21]
	sub	w9, w8, #1
	and	w0, w9, w0
	ldr	x9, [x19, #48]
	sdiv	w8, w20, w8
	add	x1, x9, w8, sxtw
	bl	_test_and_set_bit
	cbnz	x0, LBB0_1
; %bb.3:
	ldr	x8, [x19, #40]
	mov	w22, #48
	smaddl	x21, w20, w22, x8
	mov	x0, x21
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldp	x9, x8, [x19, #24]
	smaddl	x23, w20, w22, x8
	smaddl	x0, w20, w22, x9
	str	x0, [x21, #40]
	mov	w22, #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	str	w20, [x21]
	add	x0, x21, #32
	bl	_INIT_LIST_HEAD
	str	x23, [x21, #24]
	ldr	w8, [x19, #4]
	stp	w8, w22, [x21, #4]
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.no_dead_strip	_cmd_alloc
.subsections_via_symbols
