	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pack_a
_pack_a:                                ## @pack_a
	.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
	movl	%r9d, %r13d
	movq	%r8, %r12
	movq	%rcx, %r15
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_RSTRING_LEN
	movq	%rax, %rbx
	movq	_PACK_FLAG_a@GOTPCREL(%rip), %rcx
	movq	_PACK_FLAG_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	testl	%r13d, %ecx
	sete	%cl
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	cmpq	$-1, %r12
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movq	%r15, %r14
	jne	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	testl	%r13d, %eax
	setne	%r15b
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rax
	subq	%r12, %rax
	movq	%r12, %rcx
	cmovlq	%rbx, %rcx
	negq	%rax
	xorl	%r15d, %r15d
	cmpq	%rbx, %r12
	cmovgeq	%rax, %r15
	movq	%rcx, %rbx
LBB0_5:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rbx,%r14), %rdx
	addq	%r15, %rdx
	callq	_str_len_ensure
	movl	%eax, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r13
	leaq	(%rax,%r14), %r12
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memcpy
	leaq	(%r12,%rbx), %rax
	testq	%r15, %r15
	jle	LBB0_7
## %bb.6:
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	shlb	$5, %cl
	movzbl	%cl, %esi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_memset
	addq	%r15, %rbx
	addq	%r14, %rbx
	addq	%rbx, %r13
	movq	%r13, %rax
LBB0_7:
	subl	%r12d, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACK_FLAG_a,4,2                ## @PACK_FLAG_a
	.comm	_PACK_FLAG_Z,4,2                ## @PACK_FLAG_Z
	.no_dead_strip	_pack_a
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pack_a
_pack_a:                                ; @pack_a
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x5
	mov	x22, x4
	mov	x19, x3
	mov	x21, x2
	mov	x25, x1
	mov	x23, x0
	mov	x0, x1
	bl	_RSTRING_PTR
	mov	x20, x0
	mov	x0, x25
	bl	_RSTRING_LEN
Lloh0:
	adrp	x8, _PACK_FLAG_a@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACK_FLAG_a@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PACK_FLAG_Z@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PACK_FLAG_Z@GOTPAGEOFF]
	and	w10, w8, w24
Lloh5:
	ldr	w8, [x9]
	and	w8, w8, w24
	orr	w9, w10, w8
	cmp	w9, #0
	cset	w25, eq
	cbz	x22, LBB0_4
; %bb.1:
	cmp	x0, x22
	csel	x9, x0, x22, lt
	subs	x10, x22, x0
	csel	x10, xzr, x10, lt
	cmp	w8, #0
	cset	w8, ne
	cmn	x22, #1
	csel	x22, x9, x0, ne
	csel	x24, x10, x8, ne
	add	x8, x22, x19
	add	x2, x8, x24
	mov	x0, x23
	mov	x1, x21
	bl	_str_len_ensure
	bl	_RSTRING_PTR
	mov	x23, x0
	add	x21, x0, x19
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	add	x0, x21, x22
	cmp	x24, #1
	b.lt	LBB0_3
; %bb.2:
	lsl	w1, w25, #5
	mov	x2, x24
	bl	_memset
	add	x8, x22, x24
	add	x8, x8, x19
	add	x0, x23, x8
LBB0_3:
	sub	w0, w0, w21
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PACK_FLAG_a,4,2                ; @PACK_FLAG_a
	.comm	_PACK_FLAG_Z,4,2                ; @PACK_FLAG_Z
	.no_dead_strip	_pack_a
.subsections_via_symbols
