	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dom4wrap
_dom4wrap:                              ## @dom4wrap
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_wrapindex@GOTPCREL(%rip), %r14
	movq	_maxwraps@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, (%r14)
	jl	LBB0_2
## %bb.1:
	leal	(%rcx,%rcx), %edx
	testl	%ecx, %ecx
	movl	$16, %esi
	cmovnel	%edx, %esi
	movl	%esi, (%rax)
	movq	_m4wraps@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rcx
	movl	$4, %edx
	callq	_xreallocarray
	movq	%rax, (%r15)
LBB0_2:
	movq	%rbx, %rdi
	callq	_xstrdup
	movq	_m4wraps@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%r14), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r14)
	movl	%eax, (%rcx,%rdx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wrapindex,4,2                  ## @wrapindex
	.comm	_maxwraps,4,2                   ## @maxwraps
	.comm	_m4wraps,8,3                    ## @m4wraps
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many m4wraps"

	.no_dead_strip	_dom4wrap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dom4wrap
_dom4wrap:                              ; @dom4wrap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x20, _wrapindex@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wrapindex@GOTPAGEOFF]
	ldr	w10, [x20]
Lloh2:
	adrp	x8, _maxwraps@GOTPAGE
Lloh3:
	ldr	x8, [x8, _maxwraps@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh4:
	adrp	x21, _m4wraps@GOTPAGE
Lloh5:
	ldr	x21, [x21, _m4wraps@GOTPAGEOFF]
	cmp	w10, w9
	b.lt	LBB0_2
; %bb.1:
	lsl	w10, w9, #1
	mov	w11, #16
	cmp	w9, #0
	csel	w1, w11, w10, eq
	str	w1, [x8]
	ldr	x0, [x21]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #4
	bl	_xreallocarray
	str	x0, [x21]
LBB0_2:
	mov	x0, x19
	bl	_xstrdup
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	w10, w9, #1
	str	w10, [x20]
	str	w0, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_wrapindex,4,2                  ; @wrapindex
	.comm	_maxwraps,4,2                   ; @maxwraps
	.comm	_m4wraps,8,3                    ; @m4wraps
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many m4wraps"

	.no_dead_strip	_dom4wrap
.subsections_via_symbols
