	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function convert_network_to_scalar
LCPI0_0:
	.quad	0x41f0000000000000              ## double 4294967296
LCPI0_1:
	.quad	0x4170000000000000              ## double 16777216
LCPI0_2:
	.quad	0x4070000000000000              ## double 256
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_convert_network_to_scalar
	.p2align	4, 0x90
_convert_network_to_scalar:             ## @convert_network_to_scalar
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	leal	-130(%rsi), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$128, %esi
	je	LBB0_6
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_7
## %bb.3:
	callq	_DatumGetMacaddr8P
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	8(%rax), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	12(%rax), %ecx
	cvtsi2sd	%ecx, %xmm1
	mulsd	LCPI0_0(%rip), %xmm1
	movl	16(%rax), %ecx
	shll	$24, %ecx
	movl	20(%rax), %edx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	24(%rax), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	28(%rax), %ecx
	cvtsi2sd	%ecx, %xmm0
	addsd	%xmm1, %xmm0
	jmp	LBB0_8
LBB0_4:
	callq	_DatumGetInetPP
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ip_family
	movq	_PGSQL_AF_INET@GOTPCREL(%rip), %rax
	cmpeqsd	(%rax), %xmm0
	movq	%xmm0, %r15
	andl	$1, %r15d
	movq	%r14, %rdi
	callq	_ip_family
	xorq	$5, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	mulsd	LCPI0_2(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ip_addr
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	(%rax,%rbx,8), %xmm0
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:
	callq	_DatumGetMacaddrP
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$16, %ecx
	shll	$8, %edx
	orl	%ecx, %edx
	orl	8(%rax), %edx
	cvtsi2sd	%edx, %xmm1
	mulsd	LCPI0_1(%rip), %xmm1
	movl	12(%rax), %ecx
	shll	$16, %ecx
	movl	16(%rax), %edx
	shll	$8, %edx
	orl	%ecx, %edx
	orl	20(%rax), %edx
	cvtsi2sd	%edx, %xmm0
	addsd	%xmm1, %xmm0
	jmp	LBB0_8
LBB0_7:
	movl	$1, (%rdx)
	xorpd	%xmm0, %xmm0
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGSQL_AF_INET,8,3              ## @PGSQL_AF_INET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_network_to_scalar      ; -- Begin function convert_network_to_scalar
	.p2align	2
_convert_network_to_scalar:             ; @convert_network_to_scalar
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	sub	w8, w1, #130
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w1, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_8
; %bb.3:
	bl	_DatumGetMacaddr8P
	ldp	w8, w9, [x0]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w9, w10, [x0, #8]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	scvtf	d0, w8
	mov	x8, #4751297606875873280
	fmov	d1, x8
	fmul	d0, d0, d1
	ldp	w8, w9, [x0, #16]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w9, w10, [x0, #24]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	b	LBB0_7
LBB0_4:
	bl	_DatumGetInetPP
	mov	x19, x0
	bl	_ip_family
	fmov	d8, d0
Lloh0:
	adrp	x8, _PGSQL_AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PGSQL_AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	d9, [x8]
	mov	x0, x19
	bl	_ip_family
	mov	x8, #4643211215818981376
	fmov	d10, x8
	fmul	d11, d0, d10
	mov	x0, x19
	bl	_ip_addr
	ldr	d0, [x0]
	fadd	d0, d11, d0
	fmul	d11, d0, d10
	mov	x0, x19
	bl	_ip_addr
	ldr	d0, [x0, #8]
	fadd	d0, d11, d0
	fmul	d11, d0, d10
	mov	x0, x19
	bl	_ip_addr
	ldr	d0, [x0, #16]
	fadd	d0, d11, d0
	fmul	d10, d0, d10
	mov	x0, x19
	bl	_ip_addr
	ldr	d0, [x0, #24]
	fadd	d0, d10, d0
	fcmp	d8, d9
	b.eq	LBB0_9
; %bb.5:
	mov	x8, #4643211215818981376
	fmov	d1, x8
	fmul	d8, d0, d1
	mov	x0, x19
	bl	_ip_addr
	ldr	d0, [x0, #32]
	fadd	d0, d8, d0
	b	LBB0_9
LBB0_6:
	bl	_DatumGetMacaddrP
	ldp	w8, w9, [x0]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldp	w9, w10, [x0, #8]
	orr	w8, w8, w9
	scvtf	d0, w8
	mov	x8, #4715268809856909312
	fmov	d1, x8
	fmul	d0, d0, d1
	ldp	w8, w9, [x0, #16]
	lsl	w8, w8, #8
	orr	w8, w8, w10, lsl #16
	orr	w8, w8, w9
LBB0_7:
	scvtf	d1, w8
	fadd	d0, d0, d1
	b	LBB0_9
LBB0_8:
	mov	w8, #1
	str	w8, [x2]
	movi	d0, #0000000000000000
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PGSQL_AF_INET,8,3              ; @PGSQL_AF_INET
.subsections_via_symbols
