	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_res
_fill_res:                              ## @fill_res
	.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	%r8, %r14
	movq	%rdi, %r12
	movl	$0, (%rdi)
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rsi), %rsi
	movq	8(%rbx), %r13
	movl	(%rcx), %edi
	callq	_query_dname_compare
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_fill_canon
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_17
LBB0_4:
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%rdx, %rsi
	callq	_fill_canon
	testl	%eax, %eax
	je	LBB0_17
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.7:
	movl	16(%r14), %eax
	movl	%eax, (%r12)
LBB0_8:
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 8(%r12)
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 16(%r12)
	cmpq	$0, 8(%r12)
	setne	%cl
	testq	%rax, %rax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %r15d
	jmp	LBB0_29
LBB0_9:
	movq	$0, 24(%r12)
LBB0_10:
	movl	(%r13), %edi
	incl	%edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 8(%r12)
	movl	(%r13), %edi
	incl	%edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 16(%r12)
	movq	8(%r12), %rcx
	xorl	%r15d, %r15d
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.11:
	testq	%rax, %rax
	je	LBB0_29
## %bb.12:
	cmpl	$0, (%r13)
	je	LBB0_25
## %bb.13:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movslq	-4(%rcx,%rbx,4), %rsi
	addq	$-2, %rsi
	movl	%esi, -4(%rax,%rbx,4)
	movq	24(%r13), %rax
	movq	-8(%rax,%rbx,8), %rdi
	addq	$2, %rdi
	callq	_memdup
	movq	8(%r12), %rcx
	movq	%rax, -8(%rcx,%rbx,8)
	movq	8(%r12), %rcx
	cmpq	$0, -8(%rcx,%rbx,8)
	je	LBB0_29
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jae	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%r12), %rax
	incq	%rbx
	jmp	LBB0_14
LBB0_17:
	xorl	%r15d, %r15d
	jmp	LBB0_29
LBB0_18:
	testl	%eax, %eax
	je	LBB0_25
## %bb.19:
	movl	16(%r13), %esi
	movl	%esi, (%r12)
	movq	8(%r14), %r8
	testq	%r8, %r8
	je	LBB0_28
## %bb.20:
	movq	24(%r14), %rdi
	cmpq	$1, %r8
	jne	LBB0_30
## %bb.21:
	xorl	%ebx, %ebx
LBB0_22:
	testb	$1, %r8b
	je	LBB0_28
## %bb.23:
	movq	(%rdi,%rbx,8), %rdx
	movq	(%rdx), %rdx
	movl	16(%rdx), %edx
	cmpl	%edx, %esi
	jle	LBB0_28
## %bb.24:
	movl	%edx, (%r12)
	jmp	LBB0_28
LBB0_25:
	cmpq	$0, (%r14)
	je	LBB0_27
## %bb.26:
	movl	16(%r14), %eax
	movl	%eax, (%r12)
LBB0_27:
	xorl	%eax, %eax
LBB0_28:
	movq	$0, (%rcx,%rax,8)
	movq	16(%r12), %rcx
	movl	$0, (%rcx,%rax,4)
	movl	$1, %r15d
LBB0_29:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	%r8, %r9
	andq	$-2, %r9
	xorl	%ebx, %ebx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_32 Depth=1
	addq	$2, %rbx
	cmpq	%rbx, %r9
	je	LBB0_22
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rbx,8), %rdx
	movq	(%rdx), %rdx
	movl	16(%rdx), %edx
	cmpl	%edx, %esi
	jle	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	%edx, (%r12)
	movl	%edx, %esi
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	8(%rdi,%rbx,8), %rdx
	movq	(%rdx), %rdx
	movl	16(%rdx), %edx
	cmpl	%edx, %esi
	jle	LBB0_31
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	%edx, (%r12)
	movl	%edx, %esi
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fill_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_res
_fill_res:                              ; @fill_res
	.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	x20, x4
	mov	x19, x0
	str	wzr, [x0]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x21, x1
	ldr	w0, [x3]
	ldp	x1, x22, [x1]
	bl	_query_dname_compare
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_fill_canon
	cbnz	w0, LBB0_9
	b	LBB0_16
LBB0_3:
	cbz	x2, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x2
	bl	_fill_canon
	cbz	w0, LBB0_16
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x20, #16]
	str	w8, [x19]
LBB0_7:
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #8]
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #16]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	cset	w8, ne
	b	LBB0_26
LBB0_8:
	str	xzr, [x19, #24]
LBB0_9:
	ldr	w8, [x22]
	add	w0, w8, #1
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #8]
	ldr	w8, [x22]
	add	w0, w8, #1
	mov	w1, #4
	bl	_calloc
	mov	w8, #0
	str	x0, [x19, #16]
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_26
; %bb.10:
	cbz	x0, LBB0_26
; %bb.11:
	ldr	w8, [x22]
	cbz	w8, LBB0_23
; %bb.12:
	mov	x21, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	lsl	x9, x21, #2
	ldrsw	x8, [x8, x9]
	sub	x1, x8, #2
	str	w1, [x0, x9]
	ldr	x8, [x22, #24]
	lsl	x23, x21, #3
	ldr	x8, [x8, x23]
	add	x0, x8, #2
	bl	_memdup
	ldr	x8, [x19, #8]
	str	x0, [x8, x23]
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x23]
	cbz	x8, LBB0_26
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.hs	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x19, #16]
	b	LBB0_13
LBB0_16:
	mov	w8, #0
	b	LBB0_26
LBB0_17:
	cbz	w8, LBB0_23
; %bb.18:
	ldr	w11, [x22, #16]
	str	w11, [x19]
	ldr	x10, [x20, #8]
	cbz	x10, LBB0_25
; %bb.19:
	ldr	x12, [x20, #24]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x12, x12, #8
	subs	x10, x10, #1
	b.eq	LBB0_25
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12]
	ldr	x13, [x13]
	ldr	w13, [x13, #16]
	cmp	w11, w13
	b.le	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	str	w13, [x19]
	mov	x11, x13
	b	LBB0_20
LBB0_23:
	ldr	x8, [x20]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x8, #0
	ldr	x10, [x20, #16]
	str	w10, [x19]
LBB0_25:
	str	xzr, [x9, x8, lsl #3]
	ldr	x9, [x19, #16]
	str	wzr, [x9, x8, lsl #2]
	mov	w8, #1
LBB0_26:
	mov	x0, x8
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fill_res
.subsections_via_symbols
