	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	movl	%edi, %ebx
	movq	_code@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_num@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_done@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_root@GOTPCREL(%rip), %rax
	movl	$9, (%rax)
	movq	_max@GOTPCREL(%rip), %rax
	movl	$15, (%rax)
	movl	$286, %r14d                     ## imm = 0x11E
	movl	$9, %r12d
	movl	$15, %r15d
	cmpl	$2, %edi
	jl	LBB0_6
## %bb.1:
	movq	%rsi, %r13
	movq	8(%rsi), %rdi
	callq	_atoi
	movl	%eax, %r14d
	cmpl	$2, %ebx
	je	LBB0_5
## %bb.3:
	movq	16(%r13), %rdi
	callq	_atoi
	movl	%eax, %r12d
	movq	_root@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	cmpl	$4, %ebx
	jb	LBB0_5
## %bb.4:
	movq	24(%r13), %rdi
	callq	_atoi
	movl	%eax, %r15d
	movq	_max@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	jmp	LBB0_6
LBB0_5:
	movq	_max@GOTPCREL(%rip), %rax
LBB0_6:
	leaq	L_.str(%rip), %rdi
	cmpl	$4, %ebx
	jg	LBB0_12
## %bb.7:
	cmpl	$2, %r14d
	jl	LBB0_12
## %bb.8:
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.9:
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	cmpl	%r14d, %r15d
	jb	LBB0_12
## %bb.11:
	decl	%r14d
	movl	%r14d, (%rax)
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fputs
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_code,8,3                       ## @code
	.comm	_num,8,3                        ## @num
	.comm	_done,8,3                       ## @done
	.comm	_root,4,2                       ## @root
	.comm	_max,4,2                        ## @max
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arguments, need: [sym >= 2 [root >= 1 [max >= 1]]]\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"abort: code length too long for internal types\n"

	.comm	_size,8,3                       ## @size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _code@GOTPAGE
Lloh1:
	ldr	x8, [x8, _code@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _num@GOTPAGE
Lloh4:
	ldr	x8, [x8, _num@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x8, _done@GOTPAGE
Lloh7:
	ldr	x8, [x8, _done@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	adrp	x24, _root@GOTPAGE
Lloh10:
	ldr	x24, [x24, _root@GOTPAGEOFF]
	mov	w21, #9
	str	w21, [x24]
Lloh11:
	adrp	x23, _max@GOTPAGE
Lloh12:
	ldr	x23, [x23, _max@GOTPAGEOFF]
	mov	w0, #15
	str	w0, [x23]
	cmp	w19, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x1
	ldr	x0, [x1, #8]
	bl	_atoi
	mov	x20, x0
	cmp	w19, #2
	b.ne	LBB0_4
; %bb.2:
	mov	w21, #9
	b	LBB0_6
LBB0_3:
	mov	w20, #286
	b	LBB0_7
LBB0_4:
	ldr	x0, [x22, #16]
	bl	_atoi
	mov	x21, x0
	str	w0, [x24]
	cmp	w19, #4
	b.lo	LBB0_6
; %bb.5:
	ldr	x0, [x22, #24]
	bl	_atoi
	str	w0, [x23]
	b	LBB0_7
LBB0_6:
	mov	w0, #15
LBB0_7:
Lloh13:
	adrp	x8, l_.str@PAGE
Lloh14:
	add	x8, x8, l_.str@PAGEOFF
	cmp	w19, #4
	b.gt	LBB0_14
; %bb.8:
	cmp	w20, #2
	b.lt	LBB0_14
; %bb.9:
	cmp	w21, #1
	b.lt	LBB0_14
; %bb.10:
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.11:
	cmp	w0, w20
	b.lo	LBB0_13
; %bb.12:
	sub	w8, w20, #1
	str	w8, [x23]
LBB0_13:
Lloh15:
	adrp	x8, l_.str.1@PAGE
Lloh16:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_14:
Lloh17:
	adrp	x9, _stderr@GOTPAGE
Lloh18:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_fputs
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_code,8,3                       ; @code
	.comm	_num,8,3                        ; @num
	.comm	_done,8,3                       ; @done
	.comm	_root,4,2                       ; @root
	.comm	_max,4,2                        ; @max
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arguments, need: [sym >= 2 [root >= 1 [max >= 1]]]\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"abort: code length too long for internal types\n"

	.comm	_size,8,3                       ; @size
.subsections_via_symbols
