	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geoip_lookup
_geoip_lookup:                          ## @geoip_lookup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_mmdb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	_MMDB_lookup_string
	movl	%eax, (%rbx)
	movl	$1, %ecx
	cmpl	$0, -16(%rbp)
	jne	LBB0_4
## %bb.1:
	movq	_MMDB_SUCCESS@GOTPCREL(%rip), %rcx
	movl	-12(%rbp), %edi
	cmpl	%edi, (%rcx)
	je	LBB0_3
## %bb.2:
	callq	_MMDB_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FATAL
	movl	(%rbx), %eax
LBB0_3:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
LBB0_4:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmdb,4,2                       ## @mmdb
	.comm	_MMDB_SUCCESS,4,2               ## @MMDB_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error from libmaxminddb: %s\n"

	.no_dead_strip	_geoip_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geoip_lookup
_geoip_lookup:                          ; @geoip_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _mmdb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmdb@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_MMDB_lookup_string
	str	w0, [x19]
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _MMDB_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMDB_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	ldr	w8, [sp, #8]
	cmp	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x8
	bl	_MMDB_strerror
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
	ldr	w0, [x19]
LBB0_4:
	cmp	w0, #0
	cset	w0, eq
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mmdb,4,2                       ; @mmdb
	.comm	_MMDB_SUCCESS,4,2               ; @MMDB_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error from libmaxminddb: %s\n"

	.no_dead_strip	_geoip_lookup
.subsections_via_symbols
