	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addsubunit
_addsubunit:                            ## @addsubunit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_NULLUNIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-8(%rdi), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_1
LBB0_3:
	movq	_MAXSUBUNITS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rdi,%rcx,8), %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_4
## %bb.5:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	$0, 8(%rbx)
LBB0_7:
	movq	%rsi, %rdi
	callq	_dupstr
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NULLUNIT,8,3                   ## @NULLUNIT
	.comm	_MAXSUBUNITS,4,2                ## @MAXSUBUNITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memory overflow in unit reduction"

	.no_dead_strip	_addsubunit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addsubunit
_addsubunit:                            ; @addsubunit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _NULLUNIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NULLUNIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	sub	x19, x0, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]!
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_1
; %bb.2:
Lloh3:
	adrp	x9, _MAXSUBUNITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAXSUBUNITS@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x9, x0, x9, lsl #3
	cmp	x19, x9
	b.hs	LBB0_6
; %bb.3:
	cbnz	x8, LBB0_5
; %bb.4:
	str	xzr, [x19, #8]
LBB0_5:
	mov	x0, x1
	bl	_dupstr
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NULLUNIT,8,3                   ; @NULLUNIT
	.comm	_MAXSUBUNITS,4,2                ; @MAXSUBUNITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memory overflow in unit reduction"

	.no_dead_strip	_addsubunit
.subsections_via_symbols
