	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_testit                         ## -- Begin function testit
	.p2align	4, 0x90
_testit:                                ## @testit
	.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
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r12
	testq	%rdx, %rdx
	cmoveq	%rdi, %r13
	callq	_strdup
	movq	%rax, %r14
	testl	%ebx, %ebx
	jns	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %rbx
LBB0_2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_trimdomain
	movq	_tests@GOTPCREL(%rip), %rbx
	incl	(%rbx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	movl	(%rbx), %esi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_printf
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tests,4,2                      ## @tests
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not ok %d - %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"# %s -> %s (expected %s)\n"

L_.str.2:                               ## @.str.2
	.asciz	"ok %d - %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_testit                         ; -- Begin function testit
	.p2align	2
_testit:                                ; @testit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x23, x1
	mov	x20, x0
	cmp	x2, #0
	csel	x21, x0, x2, eq
	bl	_strdup
	mov	x19, x0
	tbz	w23, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_strlen
	mov	x23, x0
LBB0_2:
	mov	x0, x19
	mov	x1, x23
	bl	_trimdomain
Lloh0:
	adrp	x23, _tests@GOTPAGE
Lloh1:
	ldr	x23, [x23, _tests@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_strcmp
	ldr	w8, [x23]
	cbz	x0, LBB0_4
; %bb.3:
	stp	x8, x22, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	stp	x19, x21, [sp, #8]
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x22, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_5:
	bl	_printf
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tests,4,2                      ; @tests
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not ok %d - %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"# %s -> %s (expected %s)\n"

l_.str.2:                               ; @.str.2
	.asciz	"ok %d - %s\n"

.subsections_via_symbols
