	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_inet_union_params
_calc_inet_union_params:                ## @calc_inet_union_params
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	%edx, %esi
	setle	%dil
	callq	_Assert
	movslq	%ebx, %r12
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movl	(%r14,%r12,4), %edi
	callq	_DatumGetInetKeyP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gk_ip_family
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_gk_ip_minbits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_gk_ip_commonbits
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_gk_ip_addr
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %r12d
	jge	LBB0_1
## %bb.2:
	movslq	%ecx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r14d
	movl	%r13d, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r12,4), %edi
	callq	_DatumGetInetKeyP
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_gk_ip_family
	cmpl	%eax, %r14d
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_gk_ip_family
	movl	%eax, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_gk_ip_family
	cmpl	%eax, %ebx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_gk_ip_family
	movl	%eax, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %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	%r13, %rdi
	callq	_gk_ip_minbits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_gk_ip_commonbits
	cmpl	%eax, %r15d
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_gk_ip_commonbits
	movl	%eax, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_gk_ip_addr
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_bitncommon
	movl	%eax, %r15d
	jmp	LBB0_13
LBB0_1:
	movl	%r13d, %r14d
	movl	%r13d, %ebx
LBB0_14:
	xorl	%eax, %eax
	cmpl	%ebx, %r14d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmovnel	%eax, %ecx
	cmovnel	%eax, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	16(%rbp), %rax
	movl	%r15d, (%rax)
	addq	$56, %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
.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
_calc_inet_union_params:                ; @calc_inet_union_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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-byte Folded Spill
	mov	x21, x4
	mov	x22, x3
	mov	x28, x2
	mov	x19, x1
	mov	x27, x0
	cmp	w1, w2
	cset	w0, le
	bl	_Assert
	ldr	w0, [x27, w19, sxtw #2]
	bl	_DatumGetInetKeyP
	mov	x26, x0
	bl	_gk_ip_family
	mov	x23, x0
	mov	x0, x26
	bl	_gk_ip_minbits
	mov	x24, x0
	mov	x0, x26
	bl	_gk_ip_commonbits
	mov	x25, x0
	mov	x0, x26
	bl	_gk_ip_addr
	cmp	w19, w28
	b.ge	LBB0_13
; %bb.1:
	mov	x26, x0
	sxtw	x8, w19
	sxtw	x9, w28
	sub	x19, x9, x8
	add	x8, x27, x8, lsl #2
	add	x20, x8, #4
	mov	x27, x23
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #4
	subs	x19, x19, #1
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_DatumGetInetKeyP
	mov	x28, x0
	bl	_gk_ip_family
	cmp	w23, w0
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_gk_ip_family
	mov	x23, x0
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_gk_ip_family
	cmp	w27, w0
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_gk_ip_family
	mov	x27, x0
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_gk_ip_minbits
	cmp	w24, w0
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_gk_ip_minbits
	mov	x24, x0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_gk_ip_commonbits
	cmp	w25, w0
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_gk_ip_commonbits
	mov	x25, x0
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, #1
	b.lt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_gk_ip_addr
	mov	x1, x0
	mov	x0, x26
	mov	x2, x25
	bl	_bitncommon
	mov	x25, x0
	b	LBB0_2
LBB0_13:
	mov	x27, x23
LBB0_14:
	cmp	w23, w27
	csel	w8, w24, wzr, eq
	str	w23, [x22]
	csel	w9, w25, wzr, eq
	str	w27, [x21]
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	str	w8, [x10]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w9, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_inet_union_params
.subsections_via_symbols
