	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pairs_hostid_result
_get_pairs_hostid_result:               ## @get_pairs_hostid_result
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	movq	_hosts@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_tree_get_pairs_hostid_result
	movslq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rdx, %rax
	shlq	$4, %rax
	movl	-16(%rax,%r14), %r12d
	incl	%r12d
	jmp	LBB0_4
LBB0_2:
	movl	$1, %r12d
LBB0_4:
	movl	(%r15), %eax
	cmpl	%eax, %r12d
	jle	LBB0_5
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_vkprintf
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %rbx
	decq	%rbx
	movq	_HOSTS@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	%eax, %rcx
	incq	%rbx
	incl	%r12d
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx,8), %rcx
	cmpq	%r13, (%rcx)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 8(%rcx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	cmpl	%eax, %edx
	setl	%dil
	callq	_assert
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rax
	leal	1(%rax), %edx
	shlq	$4, %rax
	movl	%r12d, (%r14,%rax)
	movq	$0, 8(%r14,%rax)
	movl	%edx, (%rcx)
	movq	_hosts@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_hosts,4,2                      ## @hosts
	.comm	_HOSTS,8,3                      ## @HOSTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_pairs_hostid_result: *k = %d\n"

	.no_dead_strip	_get_pairs_hostid_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pairs_hostid_result
_get_pairs_hostid_result:               ; @get_pairs_hostid_result
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	str	wzr, [x0]
Lloh0:
	adrp	x23, _hosts@GOTPAGE
Lloh1:
	ldr	x23, [x23, _hosts@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #16
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_tree_get_pairs_hostid_result
	ldr	w2, [x21]
	cbz	w2, LBB0_3
; %bb.2:
	sub	w8, w2, #1
	sbfiz	x8, x8, #4, #32
	ldr	w8, [x19, x8]
	add	w9, w8, #1
	b	LBB0_4
LBB0_3:
	mov	w9, #1
LBB0_4:
	ldr	w8, [x23]
	cmp	w9, w8
	b.le	LBB0_7
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
LBB0_6:
	mov	x0, x19
	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
LBB0_7:
	sxtw	x24, w9
Lloh4:
	adrp	x22, _HOSTS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _HOSTS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	x24, w8, sxtw
	add	x24, x24, #1
	b.ge	LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	x9, [x9, x24, lsl #3]
	ldr	x10, [x9]
	cmp	x10, x20
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x9, #8]
	cbnz	w9, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w2, w8
	cset	w0, lt
	bl	_assert
	ldrsw	x8, [x21]
	add	x9, x19, x8, lsl #4
	str	w24, [x9]
	str	xzr, [x9, #8]
	add	w2, w8, #1
	str	w2, [x21]
	ldr	w8, [x23]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_hosts,4,2                      ; @hosts
	.comm	_HOSTS,8,3                      ; @HOSTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_pairs_hostid_result: *k = %d\n"

	.no_dead_strip	_get_pairs_hostid_result
.subsections_via_symbols
