	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function network_abbrev_convert
_network_abbrev_convert:                ## @network_abbrev_convert
	.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), %rbx
	callq	_DatumGetInetPP
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ip_family
	movq	_PGSQL_AF_INET@GOTPCREL(%rip), %r14
	movl	$1, %edi
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_ip_family
	movq	_PGSQL_AF_INET6@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
LBB0_2:
	callq	_Assert
	movq	%r12, %rdi
	callq	_ip_family
	cmpq	(%r14), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	jne	LBB0_4
## %bb.3:
	callq	_ip_addr
	leaq	-60(%rbp), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-60(%rbp), %edi
	callq	_pg_bswap32
	movl	%eax, -44(%rbp)
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_4:
	callq	_ip_addr
	leaq	-44(%rbp), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_DatumBigEndianToNative
	movl	%eax, -44(%rbp)
	movq	_SIZEOF_DATUM@GOTPCREL(%rip), %rax
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	decb	%cl
	movl	$1, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
LBB0_5:
	movq	%r12, %rdi
	callq	_ip_maxbits
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_ip_bits
	subl	%eax, %ebx
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_Assert
	movq	_SIZEOF_DATUM@GOTPCREL(%rip), %rax
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	imull	(%rax), %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r15d
	movq	%r12, %rdi
	callq	_ip_bits
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_ip_bits
	movl	(%r14), %ecx
	movq	_SIZEOF_DATUM@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_9
## %bb.8:
	movl	-44(%rbp), %ebx
	movl	%r15d, %ecx
	shrl	%cl, %ebx
	shll	%cl, %ebx
	jmp	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movl	-44(%rbp), %ebx
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	incl	(%r14)
	sarl	%ebx
	orl	%r13d, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_12
## %bb.11:
	addq	$4, %r14
	movl	%ebx, %edi
	callq	_hash_uint32
	movl	%eax, %edi
	callq	_DatumGetUInt32
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_addHyperLogLog
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGSQL_AF_INET,8,3              ## @PGSQL_AF_INET
	.comm	_PGSQL_AF_INET6,8,3             ## @PGSQL_AF_INET6
	.comm	_SIZEOF_DATUM,4,2               ## @SIZEOF_DATUM
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.comm	_ABBREV_BITS_INET4_NETMASK_SIZE,4,2 ## @ABBREV_BITS_INET4_NETMASK_SIZE
	.comm	_ABBREV_BITS_INET4_SUBNET,4,2   ## @ABBREV_BITS_INET4_SUBNET
	.no_dead_strip	_network_abbrev_convert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function network_abbrev_convert
_network_abbrev_convert:                ; @network_abbrev_convert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x21, [x1]
	bl	_DatumGetInetPP
	mov	x19, x0
	bl	_ip_family
Lloh0:
	adrp	x20, _PGSQL_AF_INET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PGSQL_AF_INET@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_ip_family
Lloh2:
	adrp	x8, _PGSQL_AF_INET6@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PGSQL_AF_INET6@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
LBB0_3:
	bl	_Assert
	mov	x0, x19
	bl	_ip_family
	ldr	x8, [x20]
Lloh5:
	adrp	x22, _SIZEOF_DATUM@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SIZEOF_DATUM@GOTPAGEOFF]
Lloh7:
	adrp	x23, _BITS_PER_BYTE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _BITS_PER_BYTE@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_ip_addr
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #8]
	bl	_pg_bswap32
	mov	w24, #0
	str	w0, [sp, #12]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_ip_addr
	mov	x1, x0
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_DatumBigEndianToNative
	str	w0, [sp, #12]
	ldr	w8, [x22]
	ldr	w9, [x23]
	mul	w8, w9, w8
	sub	w8, w8, #1
	mov	w9, #1
	lsl	w24, w9, w8
LBB0_6:
	mov	x0, x19
	bl	_ip_maxbits
	mov	x20, x0
	mov	x0, x19
	bl	_ip_bits
	sub	w20, w20, w0
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_Assert
	ldr	w25, [x22]
	ldr	w26, [x23]
	mov	x0, x19
	bl	_ip_bits
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_ip_bits
	ldr	w8, [x22]
	ldr	w9, [x23]
	mul	w8, w9, w8
	cmp	w0, w8
	b.ge	LBB0_10
; %bb.8:
	mul	w8, w26, w25
	sdiv	w9, w20, w8
	msub	w8, w9, w8, w20
	mov	w9, #-1
	lsl	w8, w9, w8
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	b	LBB0_11
LBB0_9:
	mov	w8, #0
	b	LBB0_11
LBB0_10:
	ldr	w8, [sp, #12]
LBB0_11:
	orr	w19, w24, w8, asr #1
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_13
; %bb.12:
	add	x20, x21, #4
	mov	x0, x19
	bl	_hash_uint32
	bl	_DatumGetUInt32
	mov	x1, x0
	mov	x0, x20
	bl	_addHyperLogLog
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PGSQL_AF_INET,8,3              ; @PGSQL_AF_INET
	.comm	_PGSQL_AF_INET6,8,3             ; @PGSQL_AF_INET6
	.comm	_SIZEOF_DATUM,4,2               ; @SIZEOF_DATUM
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.comm	_ABBREV_BITS_INET4_NETMASK_SIZE,4,2 ; @ABBREV_BITS_INET4_NETMASK_SIZE
	.comm	_ABBREV_BITS_INET4_SUBNET,4,2   ; @ABBREV_BITS_INET4_SUBNET
	.no_dead_strip	_network_abbrev_convert
.subsections_via_symbols
