	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_feature
_format_feature:                        ## @format_feature
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	_qed_features_lookup@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	shlq	$4, %rbx
	movq	(%rax,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movq	8(%rcx), %r13
	movq	(%r13,%rbx), %rsi
	movl	8(%r13,%rbx), %edx
	leaq	-44(%rbp), %rcx
	callq	*%rax
	movl	%eax, %r12d
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_6
## %bb.2:
	movl	-44(%rbp), %ecx
	leal	3(%rcx), %edx
	andl	$-4, %edx
	movl	%edx, -44(%rbp)
	movq	_QED_RESULTS_BUF_MIN_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jge	LBB0_7
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_DP_NOTICE
	movq	_DBG_STATUS_INVALID_ARGS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	movl	%edx, %edi
	callq	_vzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	%rax, %r15
	leaq	(%rbx,%r13), %rcx
	leaq	(%rbx,%r13), %rdx
	addq	$8, %rdx
	movq	(%r12), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rsi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	*8(%rax,%rbx)
	movl	%eax, %r12d
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_16
## %bb.9:
	movl	-44(%rbp), %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	%esi, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jg	LBB0_12
## %bb.10:
	decl	%eax
	cltq
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movb	$10, (%r15,%rax)
	incq	%rax
	movslq	-44(%rbp), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_11
LBB0_12:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rcx, %r14
	callq	_qed_dbg_print_feature
	movq	%r14, %rcx
LBB0_14:
	movq	(%rcx), %rdi
	movq	%rcx, %r14
	callq	_vfree
	movq	%r15, (%r14)
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r13,%rbx)
	movl	-44(%rbp), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	jmp	LBB0_6
LBB0_15:
	movq	_DBG_STATUS_VIRT_MEM_ALLOC_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_16:
	movq	%r15, %rdi
	callq	_vfree
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_qed_features_lookup,8,3        ## @qed_features_lookup
	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
	.comm	_QED_RESULTS_BUF_MIN_SIZE,4,2   ## @QED_RESULTS_BUF_MIN_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"formatted size of feature was too small %d. Aborting\n"

	.comm	_DBG_STATUS_INVALID_ARGS,4,2    ## @DBG_STATUS_INVALID_ARGS
	.comm	_DBG_STATUS_VIRT_MEM_ALLOC_FAILED,4,2 ## @DBG_STATUS_VIRT_MEM_ALLOC_FAILED
	.no_dead_strip	_format_feature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_feature
_format_feature:                        ; @format_feature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w22, w1
Lloh0:
	adrp	x26, _qed_features_lookup@GOTPAGE
Lloh1:
	ldr	x26, [x26, _qed_features_lookup@GOTPAGEOFF]
	ldr	x8, [x26]
	lsl	x9, x22, #4
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0]
	ldr	x24, [x9, #8]
	add	x25, x24, x22, lsl #4
	ldr	x1, [x25]
	mov	x23, x25
	ldr	w2, [x23, #8]!
	add	x3, sp, #12
	blr	x8
	mov	x20, x0
Lloh2:
	adrp	x28, _DBG_STATUS_OK@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DBG_STATUS_OK@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	ldr	w27, [sp, #12]
	add	w8, w27, #3
	and	w2, w8, #0xfffffffc
	str	w2, [sp, #12]
Lloh4:
	adrp	x8, _QED_RESULTS_BUF_MIN_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QED_RESULTS_BUF_MIN_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ge	LBB0_7
; %bb.3:
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP_NOTICE
Lloh9:
	adrp	x8, _DBG_STATUS_INVALID_ARGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_STATUS_INVALID_ARGS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _DBG_STATUS_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DBG_STATUS_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w20, [x8]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	mov	x0, x2
	bl	_vzalloc
	cbz	x0, LBB0_15
; %bb.8:
	mov	x21, x0
	ldr	x8, [x26]
	add	x8, x8, x22, lsl #4
	ldr	x8, [x8, #8]
	ldr	x1, [x25]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x3, x21
	blr	x8
	mov	x20, x0
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.9:
	ldr	w1, [sp, #12]
	cmp	w27, w1
	b.gt	LBB0_12
; %bb.10:
	sub	w8, w27, #1
	sxtw	x8, w8
	mov	w9, #10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	strb	w9, [x21, x8]
	add	x8, x8, #1
	ldrsw	x1, [sp, #12]
	cmp	x8, x1
	b.lt	LBB0_11
LBB0_12:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_qed_dbg_print_feature
LBB0_14:
	ldr	x0, [x25]
	bl	_vfree
	str	x21, [x25]
	ldr	w8, [sp, #12]
	add	x9, x24, x22, lsl #4
	str	w8, [x9, #12]
	ldr	w8, [sp, #12]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	str	w8, [x23]
	b	LBB0_6
LBB0_15:
Lloh13:
	adrp	x8, _DBG_STATUS_VIRT_MEM_ALLOC_FAILED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DBG_STATUS_VIRT_MEM_ALLOC_FAILED@GOTPAGEOFF]
	b	LBB0_5
LBB0_16:
	mov	x0, x21
	bl	_vfree
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_qed_features_lookup,8,3        ; @qed_features_lookup
	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
	.comm	_QED_RESULTS_BUF_MIN_SIZE,4,2   ; @QED_RESULTS_BUF_MIN_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"formatted size of feature was too small %d. Aborting\n"

	.comm	_DBG_STATUS_INVALID_ARGS,4,2    ; @DBG_STATUS_INVALID_ARGS
	.comm	_DBG_STATUS_VIRT_MEM_ALLOC_FAILED,4,2 ; @DBG_STATUS_VIRT_MEM_ALLOC_FAILED
	.no_dead_strip	_format_feature
.subsections_via_symbols
