	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reduceproduct
_reduceproduct:                         ## @reduceproduct
	.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	%eax, %eax
	testl	%esi, %esi
	sete	%al
	movq	(%rdi,%rax,8), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movl	$2, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rdi
	addq	$8, %r13
	testq	%rdi, %rdi
	je	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rdi
	callq	_lookupunit
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rax, %rbx
	movq	_PRIMITIVECHAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r13), %rdi
	movq	_NULLUNIT@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	callq	_free
	movq	(%r12), %rax
	movq	%rax, (%r13)
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_addunit
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r13), %rdi
	callq	_strlen
	movl	$1, %r12d
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_13
LBB0_1:
	movl	$2, %r12d
	jmp	LBB0_14
LBB0_7:
	movq	(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown unit '%s'\n"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_PRIMITIVECHAR,4,2              ## @PRIMITIVECHAR
	.comm	_NULLUNIT,8,3                   ## @NULLUNIT
	.no_dead_strip	_reduceproduct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reduceproduct
_reduceproduct:                         ; @reduceproduct
	.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	x20, x0
	cmp	w1, #0
	cset	w8, eq
	ldr	x23, [x0, w8, uxtw #3]
	ldr	x0, [x23]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x1
	mov	w21, #2
Lloh0:
	adrp	x24, _PRIMITIVECHAR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PRIMITIVECHAR@GOTPAGEOFF]
Lloh2:
	adrp	x25, _NULLUNIT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _NULLUNIT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23, #8]!
	cbz	x0, LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	bl	_strlen
	cbz	w0, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x23]
	bl	_lookupunit
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x22, x0
	ldr	w1, [x24]
	bl	_strchr
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x0, [x23]
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	_free
	ldr	x8, [x25]
	str	x8, [x23]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	w3, #0
	bl	_addunit
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x0, [x23]
	bl	_strlen
	mov	w21, #1
	cbnz	w0, LBB0_4
	b	LBB0_2
LBB0_10:
	mov	w21, #2
	b	LBB0_13
LBB0_11:
	ldr	x1, [x23]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_12:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
LBB0_13:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown unit '%s'\n"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_PRIMITIVECHAR,4,2              ; @PRIMITIVECHAR
	.comm	_NULLUNIT,8,3                   ; @NULLUNIT
	.no_dead_strip	_reduceproduct
.subsections_via_symbols
