	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctf_add_encoded
_ctf_add_encoded:                       ## @ctf_add_encoded
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movl	%esi, %ebx
	leaq	-40(%rbp), %rcx
	callq	_ctf_add_generic
	movl	%eax, %r14d
	movq	_CTF_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_CTF_TYPE_INFO
	movq	-40(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movl	(%r12), %edi
	movq	_NBBY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_P2ROUNDUP
	cltd
	idivl	(%rbx)
	movl	%eax, %edi
	callq	_clp2
	movq	-40(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movl	(%r12), %eax
	movl	%eax, (%rcx)
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctf_set_errno                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CTF_ERR,4,2                    ## @CTF_ERR
	.comm	_NBBY,4,2                       ## @NBBY
	.no_dead_strip	_ctf_add_encoded
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctf_add_encoded
_ctf_add_encoded:                       ; @ctf_add_encoded
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x3, LBB0_4
; %bb.1:
	mov	x21, x4
	mov	x19, x3
	mov	x22, x1
	add	x3, sp, #8
	bl	_ctf_add_generic
	mov	x20, x0
Lloh0:
	adrp	x8, _CTF_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTF_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_CTF_TYPE_INFO
	ldr	x8, [sp, #8]
	str	w0, [x8, #8]
	ldr	w0, [x19]
Lloh3:
	adrp	x21, _NBBY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NBBY@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_P2ROUNDUP
	ldr	w8, [x21]
	sdiv	w0, w0, w8
	bl	_clp2
	ldr	x8, [sp, #8]
	str	w0, [x8, #4]
	ldr	w9, [x19]
	str	w9, [x8]
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	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
	add	sp, sp, #64
	b	_ctf_set_errno
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CTF_ERR,4,2                    ; @CTF_ERR
	.comm	_NBBY,4,2                       ; @NBBY
	.no_dead_strip	_ctf_add_encoded
.subsections_via_symbols
