	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_regs                  ## -- Begin function register_regs
	.p2align	4, 0x90
_register_regs:                         ## @register_regs
	.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	%r9d, -80(%rbp)                 ## 4-byte Spill
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	_state@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	testl	%esi, %esi
	jle	LBB0_31
## %bb.1:
	movslq	%edx, %r12
	movl	%esi, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rcx
	leal	1(%rax), %edx
	movl	%edx, (%r15)
	cltq
	movq	%r8, (%rcx,%rax,8)
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_30
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$5, %rax
	leaq	(%rdi,%rax), %r8
	cmpl	$0, (%rdi,%rax)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r8)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdi,%rax), %r9
	addq	$4, %r9
	cmpl	$0, 4(%rdi,%rax)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 8(%rdi,%rax)
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 12(%rdi,%rax)
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%edx, %edx
	jg	LBB0_11
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r9)
	cmpl	$0, 8(%rdi,%rax)
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdi,%rax), %rcx
	addq	$8, %rcx
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, (%rcx)
	cmpl	$0, 12(%rdi,%rax)
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdi,%rax), %rcx
	addq	$12, %rcx
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, (%rcx)
	testl	%edx, %edx
	jle	LBB0_26
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %r14
	addq	$16, %r14
	movq	16(%rcx,%rax), %rax
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rcx
	movq	-8(%rcx,%rbx,8), %r13
	cmpq	16(%r13), %rax
	jne	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%r14), %rdi
	movq	24(%r13), %rsi
	cmpq	%rsi, %rdi
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r8, %r15
	movq	%r9, %r12
	callq	_strcmp
	movq	%r12, %r9
	movq	%r15, %r8
	movq	_state@GOTPCREL(%rip), %r15
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_24
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	(%r8), %eax
	movl	(%r13), %edx
	movl	(%r9), %ecx
	cmpl	%edx, %eax
	jge	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	%ecx, %edx
	jg	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	4(%r13), %ecx
	jge	LBB0_24
	jmp	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	4(%r13), %edx
	cmpl	%edx, %ecx
	jle	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	%edx, %eax
	jle	LBB0_23
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r14), %rax
	cmpq	%rax, 16(%r13)
	jg	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	1(%rbx), %rcx
	cmpq	%r12, %rbx
	movq	%rcx, %rbx
	jl	LBB0_12
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movq	_MAXREGS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %edi
	leaq	L_.str(%rip), %rsi
	movq	%r8, %rbx
	callq	_errx
	movq	%rbx, %r8
	movl	(%r15), %eax
	jmp	LBB0_28
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, 4(%r13)
	jmp	LBB0_29
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r13)
	jmp	LBB0_29
LBB0_30:
	movl	(%r15), %edx
LBB0_31:
	movq	8(%r15), %rdi
	movq	_regcompar@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %esi
	movl	$8, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qsort                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_state,16,3                     ## @state
	.comm	_MAXREGS,4,2                    ## @MAXREGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many registers; bump MAXREGS"

	.comm	_regcompar,4,2                  ## @regcompar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_regs                  ; -- Begin function register_regs
	.p2align	2
_register_regs:                         ; @register_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	w4, w5, [sp, #8]                ; 8-byte Folded Spill
	stp	w2, w3, [sp]                    ; 8-byte Folded Spill
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x26, _state@GOTPAGE
Lloh1:
	ldr	x26, [x26, _state@GOTPAGEOFF]
	ldr	w11, [x26]
	cmp	w1, #1
	b.lt	LBB0_29
; %bb.1:
	mov	x27, #0
	sxtw	x28, w11
	mov	w8, w1
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26, #8]
	add	w10, w8, #1
	str	w10, [x26]
	str	x22, [x9, w8, sxtw #3]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x24
	add	x27, x27, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x27, x8
	b.eq	LBB0_28
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x22, x8, x27, lsl #5
	ldr	w8, [x22]
	cbnz	w8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	str	w8, [x22]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x22
	ldr	w8, [x21, #4]!
	cbnz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	str	w8, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x8, x27, lsl #5
	mov	x9, x8
	ldr	w10, [x9, #8]!
	cbz	w10, LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #12]!
	cbz	w9, LBB0_26
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x11
	cmp	w11, #1
	b.lt	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x25, x8, x27, lsl #5
	ldr	x8, [x25, #16]!
	add	x20, x25, #8
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w10, [x19, #4]
	cmp	w9, w10
	ccmp	w8, w10, #0, gt
	b.le	LBB0_27
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	x9, [x19, #16]
	ldr	x8, [x25]
	add	x23, x23, #1
	cmp	x9, x8
	ccmp	x23, x28, #0, le
	b.ge	LBB0_23
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x26, #8]
	ldr	x19, [x9, x23, lsl #3]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x0, [x20]
	ldr	x1, [x19, #24]
	cmp	x0, x1
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	cbz	x0, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	cbz	x1, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=2
	bl	_strcmp
	cbnz	x0, LBB0_13
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w8, [x22]
	ldr	w10, [x19]
	ldr	w9, [x21]
	cmp	w8, w10
	b.ge	LBB0_12
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=2
	cmp	w10, w9
	b.gt	LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w10, [x19, #4]
	cmp	w9, w10
	b.ge	LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x19]
	b	LBB0_3
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
Lloh2:
	adrp	x9, _MAXREGS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAXREGS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #-1
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
	ldr	w8, [x26]
	b	LBB0_2
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [sp, #8]                   ; 4-byte Folded Reload
	str	w10, [x9]
	ldr	w9, [x8, #12]!
	cbnz	w9, LBB0_10
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	str	w9, [x8]
	b	LBB0_10
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x19, #4]
	b	LBB0_3
LBB0_28:
	ldr	w11, [x26]
LBB0_29:
Lloh7:
	adrp	x8, _regcompar@GOTPAGE
Lloh8:
	ldr	x8, [x8, _regcompar@GOTPAGEOFF]
	ldr	x0, [x26, #8]
Lloh9:
	ldr	w3, [x8]
	mov	x1, x11
	mov	w2, #8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_qsort
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_state,16,3                     ; @state
	.comm	_MAXREGS,4,2                    ; @MAXREGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many registers; bump MAXREGS"

	.comm	_regcompar,4,2                  ; @regcompar
.subsections_via_symbols
