	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_geoip                     ## -- Begin function init_geoip
	.p2align	4, 0x90
_init_geoip:                            ## @init_geoip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_conf@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movl	$1, %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	_mmdb@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	_MMDB_MODE_MMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_MMDB_open
	movq	_MMDB_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	callq	_free
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_FATAL
LBB0_3:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_geoip_city_type@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_conf,8,3                       ## @conf
	.comm	_mmdb,8,3                       ## @mmdb
	.comm	_MMDB_MODE_MMAP,4,2             ## @MMDB_MODE_MMAP
	.comm	_MMDB_SUCCESS,4,2               ## @MMDB_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to open GeoIP2 database: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"GeoLite2-City"

	.comm	_geoip_city_type,4,2            ## @geoip_city_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_geoip                     ; -- Begin function init_geoip
	.p2align	2
_init_geoip:                            ; @init_geoip
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _conf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conf@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cbz	x19, LBB0_5
; %bb.1:
	mov	w0, #1
	mov	w1, #4
	bl	_xcalloc
	mov	x2, x0
Lloh3:
	adrp	x20, _mmdb@GOTPAGE
Lloh4:
	ldr	x20, [x20, _mmdb@GOTPAGEOFF]
	str	x0, [x20]
Lloh5:
	adrp	x8, _MMDB_MODE_MMAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMDB_MODE_MMAP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MMDB_open
Lloh8:
	adrp	x8, _MMDB_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMDB_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x20]
	bl	_free
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_FATAL
LBB0_3:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _geoip_city_type@GOTPAGE
Lloh16:
	ldr	x8, [x8, _geoip_city_type@GOTPAGEOFF]
	mov	w9, #1
Lloh17:
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_conf,8,3                       ; @conf
	.comm	_mmdb,8,3                       ; @mmdb
	.comm	_MMDB_MODE_MMAP,4,2             ; @MMDB_MODE_MMAP
	.comm	_MMDB_SUCCESS,4,2               ; @MMDB_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to open GeoIP2 database: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"GeoLite2-City"

	.comm	_geoip_city_type,4,2            ; @geoip_city_type
.subsections_via_symbols
