	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query_dname_compare            ## -- Begin function query_dname_compare
	.p2align	4, 0x90
_query_dname_compare:                   ## @query_dname_compare
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_log_assert
	movq	(%r14), %rcx
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	setne	%dl
	xorl	%eax, %eax
	movq	%rbx, %rsi
	orq	%rcx, %rsi
	jne	LBB0_1
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	subq	%r15, %rsi
	subq	%r15, %r12
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rcx
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	setne	%dl
	movq	%rbx, %rax
	orq	%rcx, %rax
	movq	%r12, %r14
	movq	%rsi, %r15
	je	LBB0_6
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpq	%rcx, %rbx
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%dl, %edi
	andl	$1, %edi
	callq	_log_assert
	leaq	8(%r14), %r12
	leaq	8(%r15), %rsi
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_9 Depth=2
	incq	%r14
	addq	$-8, %r15
	cmpq	%r14, %rbx
	je	LBB0_4
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi,%r14,8), %rax
	cmpq	(%r12,%r14,8), %rax
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movzbl	%al, %edi
	movq	%rsi, %rbx
	callq	_tolower
	movq	%rax, %r13
	movzbl	(%r12,%r14,8), %edi
	callq	_tolower
	movq	%rbx, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rax, %r13
	je	LBB0_3
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movzbl	8(%rax,%r14,8), %edi
	callq	_tolower
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	8(%rax,%r14,8), %edi
	callq	_tolower
	xorl	%ecx, %ecx
	cmpq	%rax, %rbx
	setge	%cl
	leal	(%rcx,%rcx), %eax
	decl	%eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	setge	%al
	movzbl	%al, %eax
	addl	%eax, %eax
	decl	%eax
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query_dname_compare            ; -- Begin function query_dname_compare
	.p2align	2
_query_dname_compare:                   ; @query_dname_compare
	.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, x1
	mov	x20, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w0, ne
	bl	_log_assert
	ldr	x8, [x19]
	ldr	x22, [x20]
	cmp	x22, #0
	cset	w9, ne
	orr	x10, x22, x8
	cbnz	x10, LBB0_3
LBB0_1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x22, [x20]
	cmp	x22, #0
	cset	w9, ne
	orr	x10, x22, x8
	cbz	x10, LBB0_1
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	x22, x8
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w0, w9, #0x1
	bl	_log_assert
	add	x19, x19, #8
	add	x20, x20, #8
	cbnz	x22, LBB0_6
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x19, x19, #8
	add	x20, x20, #8
	sub	x22, x22, #1
	cbz	x22, LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	and	w0, w8, #0xff
	bl	_tolower
	mov	x21, x0
	ldrb	w0, [x19]
	bl	_tolower
	cmp	x21, x0
	b.eq	LBB0_5
; %bb.8:
	ldrb	w0, [x20]
	bl	_tolower
	mov	x20, x0
	ldrb	w0, [x19]
	bl	_tolower
	cmp	x20, x0
LBB0_9:
	mov	w8, #-1
	cneg	w0, w8, ge
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
