	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_numeric_discard
_do_numeric_discard:                    ## @do_numeric_discard
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_NUMERIC_IS_NAN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	decl	32(%r15)
	jmp	LBB0_19
LBB0_2:
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	callq	_init_var_from_num
	movl	-40(%rbp), %ecx
	cmpl	(%r15), %ecx
	jne	LBB0_9
## %bb.3:
	movl	4(%r15), %eax
	cmpl	$1, %eax
	jg	LBB0_5
## %bb.4:
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	cmpl	$1, 8(%r15)
	jne	LBB0_20
## %bb.7:
	movl	$0, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	decl	%eax
LBB0_8:
	movl	%eax, 4(%r15)
LBB0_9:
	cmpq	$0, 16(%r15)
	je	LBB0_11
## %bb.10:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_var
	movl	-40(%rbp), %ecx
	addl	%ecx, %ecx
	leaq	-40(%rbp), %rdi
	movq	%rdi, %rsi
	movq	%rbx, %rdx
	callq	_mul_var
LBB0_11:
	movl	28(%r15), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movl	8(%r15), %ecx
	leal	-1(%rcx), %eax
	movl	%eax, 8(%r15)
	cmpl	$2, %ecx
	jl	LBB0_16
## %bb.12:
	movq	_NUMERIC_POS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NUMERIC_NEG@GOTPCREL(%rip), %rbx
	cmpq	%rax, -32(%rbp)
	jne	LBB0_14
## %bb.13:
	movq	(%rbx), %rax
LBB0_14:
	movq	%rax, -32(%rbp)
	leaq	24(%r15), %rdi
	leaq	-40(%rbp), %rsi
	callq	_accum_sum_add
	cmpq	$0, 16(%r15)
	je	LBB0_18
## %bb.15:
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	addq	$12, %r15
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_accum_sum_add
	jmp	LBB0_18
LBB0_16:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	leaq	24(%r15), %rdi
	callq	_accum_sum_reset
	cmpq	$0, 16(%r15)
	je	LBB0_18
## %bb.17:
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_accum_sum_reset
LBB0_18:
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
LBB0_19:
	movl	$1, %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMERIC_POS,8,3                ## @NUMERIC_POS
	.comm	_NUMERIC_NEG,8,3                ## @NUMERIC_NEG
	.no_dead_strip	_do_numeric_discard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_numeric_discard
_do_numeric_discard:                    ; @do_numeric_discard
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_NUMERIC_IS_NAN
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #32]
	sub	w8, w8, #1
	str	w8, [x19, #32]
	b	LBB0_15
LBB0_2:
	add	x1, sp, #16
	mov	x0, x20
	bl	_init_var_from_num
	ldr	w9, [sp, #16]
	ldr	w8, [x19]
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19, #4]
	subs	w8, w8, #1
	ccmp	w9, #0, #4, le
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.5:
	mov	w8, #0
	str	wzr, [x19]
LBB0_6:
	str	w8, [x19, #4]
LBB0_7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, sp
	bl	_init_var
	ldr	w8, [sp, #16]
	lsl	w3, w8, #1
	add	x0, sp, #16
	add	x1, sp, #16
	mov	x2, sp
	bl	_mul_var
LBB0_9:
	ldr	w0, [x19, #28]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldr	w9, [x19, #8]
	sub	w8, w9, #1
	str	w8, [x19, #8]
	cmp	w9, #2
	b.lt	LBB0_12
; %bb.10:
	ldr	x8, [sp, #24]
Lloh0:
	adrp	x9, _NUMERIC_POS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NUMERIC_POS@GOTPAGEOFF]
Lloh2:
	adrp	x21, _NUMERIC_NEG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NUMERIC_NEG@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x10, [x21]
	cmp	x8, x9
	csel	x8, x10, x9, eq
	str	x8, [sp, #24]
	add	x0, x19, #24
	add	x1, sp, #16
	bl	_accum_sum_add
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.11:
	ldr	x8, [x21]
	str	x8, [sp, #8]
	add	x0, x19, #12
	mov	x1, sp
	bl	_accum_sum_add
	b	LBB0_14
LBB0_12:
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	add	x0, x19, #24
	bl	_accum_sum_reset
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.13:
	add	x0, x19, #12
	bl	_accum_sum_reset
LBB0_14:
	mov	x0, x20
	bl	_MemoryContextSwitchTo
LBB0_15:
	mov	w0, #1
LBB0_16:
	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
	add	sp, sp, #80
	ret
LBB0_17:
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMERIC_POS,8,3                ; @NUMERIC_POS
	.comm	_NUMERIC_NEG,8,3                ; @NUMERIC_NEG
	.no_dead_strip	_do_numeric_discard
.subsections_via_symbols
