	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_inet_union_params_indexed
_calc_inet_union_params_indexed:        ## @calc_inet_union_params_indexed
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%edi, %edi
	testl	%edx, %edx
	setg	%dil
	callq	_Assert
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	(%r15,%rax,4), %edi
	callq	_DatumGetInetKeyP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gk_ip_family
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_gk_ip_minbits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_gk_ip_commonbits
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_gk_ip_addr
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	$2, %r13d
	jl	LBB0_1
## %bb.2:
	movl	%r13d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	movl	%r15d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r13,8), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %edi
	callq	_DatumGetInetKeyP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gk_ip_family
	cmpl	%eax, %r14d
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_gk_ip_family
	movl	%eax, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_gk_ip_family
	cmpl	%eax, %r15d
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_gk_ip_family
	movl	%eax, %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_gk_ip_minbits
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_gk_ip_minbits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_gk_ip_commonbits
	cmpl	%eax, %r12d
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_gk_ip_commonbits
	movl	%eax, %r12d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_gk_ip_addr
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_bitncommon
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_1:
	movl	%r15d, %r14d
LBB0_14:
	xorl	%eax, %eax
	cmpl	%r15d, %r14d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmovnel	%eax, %ecx
	cmovnel	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	16(%rbp), %rax
	movl	%r12d, (%rax)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_inet_union_params_indexed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_inet_union_params_indexed
_calc_inet_union_params_indexed:        ; @calc_inet_union_params_indexed
	.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	x5, x6, [sp, #16]               ; 16-byte Folded Spill
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x3
	mov	x28, x2
	mov	x19, x1
	mov	x23, x0
	cmp	w2, #0
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x19]
	ldr	w0, [x23, x8, lsl #2]
	bl	_DatumGetInetKeyP
	mov	x27, x0
	bl	_gk_ip_family
	mov	x24, x0
	mov	x0, x27
	bl	_gk_ip_minbits
	mov	x25, x0
	mov	x0, x27
	bl	_gk_ip_commonbits
	mov	x26, x0
	mov	x0, x27
	bl	_gk_ip_addr
	cmp	w28, #2
	b.lt	LBB0_13
; %bb.1:
	mov	x27, x0
	mov	w8, w28
	add	x20, x19, #8
	sub	x21, x8, #1
	mov	x28, x24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #8
	subs	x21, x21, #1
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x23, x8, lsl #2]
	bl	_DatumGetInetKeyP
	mov	x19, x0
	bl	_gk_ip_family
	cmp	w24, w0
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_gk_ip_family
	mov	x24, x0
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_gk_ip_family
	cmp	w28, w0
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_gk_ip_family
	mov	x28, x0
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_gk_ip_minbits
	cmp	w25, w0
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_gk_ip_minbits
	mov	x25, x0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_gk_ip_commonbits
	cmp	w26, w0
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_gk_ip_commonbits
	mov	x26, x0
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, #1
	b.lt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_gk_ip_addr
	mov	x1, x0
	mov	x0, x27
	mov	x2, x26
	bl	_bitncommon
	mov	x26, x0
	b	LBB0_2
LBB0_13:
	mov	x28, x24
LBB0_14:
	cmp	w24, w28
	csel	w8, w25, wzr, eq
	str	w24, [x22]
	csel	w9, w26, wzr, eq
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	str	w28, [x10]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	str	w8, [x10]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w9, [x8]
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_inet_union_params_indexed
.subsections_via_symbols
