	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dosub
_dosub:                                 ## @dosub
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movl	$0, -48(%rbp)
	movq	_exclc@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r13
	leaq	-96(%rbp), %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, 8(%r12)
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%rbx), %eax
	cmpl	$1, %ebx
	movl	%eax, %ebx
	jle	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%r12, %r14
	movl	$1, %edi
	movl	$24, %esi
	callq	_xcalloc
	movq	%rax, %r12
	movq	$0, 8(%rax)
	movq	%r14, (%rax)
	leaq	-96(%rbp), %rax
	movq	%rax, 16(%r12)
	movq	%r12, 16(%r14)
	movq	16(%r13), %r13
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FLAG_G@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	callq	_Strsave
	movq	%rax, %r14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, -64(%rbp)
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	leaq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_subword
	movq	%rax, %r14
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %edx
	cmovnel	%edx, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_FLAG_A@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_STRNULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%r14, %r13
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	leaq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_subword
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_Strcmp
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_xfree
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$0, -48(%rbp)
	jne	LBB0_8
	jmp	LBB0_11
LBB0_15:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
	jmp	LBB0_16
LBB0_1:
	leaq	-96(%rbp), %r12
LBB0_16:
	movq	_ERR_MODFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_seterror
LBB0_17:
	movq	%r12, -96(%rbp)
	movq	_HIST_PURGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$-1, %r8d
	callq	_enthist
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exclc,4,2                      ## @exclc
	.comm	_FLAG_G,4,2                     ## @FLAG_G
	.comm	_FLAG_A,4,2                     ## @FLAG_A
	.comm	_STRNULL,8,3                    ## @STRNULL
	.comm	_ERR_MODFAIL,4,2                ## @ERR_MODFAIL
	.comm	_HIST_PURGE,4,2                 ## @HIST_PURGE
	.no_dead_strip	_dosub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dosub
_dosub:                                 ; @dosub
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	wzr, [sp, #20]
Lloh0:
	adrp	x8, _exclc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exclc@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
	add	x24, sp, #24
	cmp	w27, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w28, #0
Lloh3:
	adrp	x25, _FLAG_G@GOTPAGE
Lloh4:
	ldr	x25, [x25, _FLAG_G@GOTPAGEOFF]
	add	x22, sp, #24
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_Strsave
	mov	x23, x0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x23, [x22, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #1
	mov	x27, x26
	b.le	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x23, x22
	sub	w26, w27, #1
	mov	w0, #1
	mov	w1, #24
	bl	_xcalloc
	mov	x22, x0
	stp	x23, xzr, [x0]
	str	x24, [x0, #16]
	str	x0, [x23, #16]
	ldr	x20, [x20, #16]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	and	w8, w8, w19
	cmp	w8, #0
	ccmp	w28, #0, #4, eq
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [sp, #8]
	add	x2, sp, #20
	add	x3, sp, #8
	mov	x1, x21
	bl	_subword
	mov	x23, x0
	ldr	w8, [sp, #20]
	cmp	w8, #0
	csinc	w28, w28, wzr, eq
Lloh5:
	adrp	x9, _FLAG_A@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FLAG_A@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_12
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh8:
	adrp	x8, _STRNULL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STRNULL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x23, x8
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x24, x23
	add	x2, sp, #20
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x21
	bl	_subword
	mov	x23, x0
	mov	x1, x24
	bl	_Strcmp
	mov	x25, x0
	mov	x0, x24
	bl	_xfree
	cbz	x25, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [sp, #20]
	cbnz	w8, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, sp, #24
Lloh11:
	adrp	x25, _FLAG_G@GOTPAGE
Lloh12:
	ldr	x25, [x25, _FLAG_G@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:
	cbnz	w28, LBB0_16
	b	LBB0_15
LBB0_14:
	add	x22, sp, #24
LBB0_15:
Lloh13:
	adrp	x8, _ERR_MODFAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_MODFAIL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_seterror
LBB0_16:
	str	x22, [sp, #24]
Lloh16:
	adrp	x8, _HIST_PURGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HIST_PURGE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, sp, #24
	mov	w2, #0
	mov	w3, #0
	mov	w4, #-1
	bl	_enthist
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_exclc,4,2                      ; @exclc
	.comm	_FLAG_G,4,2                     ; @FLAG_G
	.comm	_FLAG_A,4,2                     ; @FLAG_A
	.comm	_STRNULL,8,3                    ; @STRNULL
	.comm	_ERR_MODFAIL,4,2                ; @ERR_MODFAIL
	.comm	_HIST_PURGE,4,2                 ; @HIST_PURGE
	.no_dead_strip	_dosub
.subsections_via_symbols
