	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_check_hostlist            ## -- Begin function sock_check_hostlist
	.p2align	4, 0x90
_sock_check_hostlist:                   ## @sock_check_hostlist
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %eax
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.1:
	cmpb	$0, (%rdi)
	je	LBB0_23
## %bb.2:
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	-80(%rbp), %rdx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_pcap_strtok_r
	movq	$0, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	%rax, %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_SOCK_DEBUG_MESSAGE
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	leaq	-80(%rbp), %rdx
	callq	_pcap_strtok_r
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_18
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	$0, -48(%rbp)
	leaq	-104(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	leaq	-48(%rbp), %rcx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %edi
	callq	_gai_strerror
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_sock_cmpaddr
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	callq	_freeaddrinfo
	movq	$0, -48(%rbp)
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_sock_geterror
	movl	$-2, %eax
	jmp	LBB0_23
LBB0_14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_18:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_freeaddrinfo
	movq	$0, -48(%rbp)
LBB0_20:
	testq	%r12, %r12
	je	LBB0_22
## %bb.21:
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_pcap_snprintf
LBB0_22:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	$-1, %eax
LBB0_23:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sock_check_hostlist(), malloc() failed"

	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"0"

L_.str.2:                               ## @.str.2
	.asciz	"getaddrinfo() %s"

L_.str.3:                               ## @.str.3
	.asciz	"The host is not in the allowed host list. Connection refused."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_check_hostlist            ; -- Begin function sock_check_hostlist
	.p2align	2
_sock_check_hostlist:                   ; @sock_check_hostlist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	cbz	x0, LBB0_16
; %bb.1:
	ldrb	w8, [x0]
	cbz	w8, LBB0_16
; %bb.2:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	bl	_strdup
	cbz	x0, LBB0_18
; %bb.3:
	mov	x21, x0
	add	x2, sp, #32
	mov	x1, x23
	bl	_pcap_strtok_r
	str	xzr, [sp, #40]
	cbz	x0, LBB0_22
; %bb.4:
	mov	x26, x0
Lloh0:
	adrp	x27, _PF_UNSPEC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PF_UNSPEC@GOTPAGEOFF]
Lloh2:
	adrp	x28, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	adrp	x24, l_.str.1@PAGE
Lloh5:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh6:
	adrp	x25, l_.str.2@PAGE
Lloh7:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_SOCK_DEBUG_MESSAGE
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x2, sp, #32
	mov	x0, #0
	mov	x1, x23
	bl	_pcap_strtok_r
	mov	x26, x0
	cbz	x0, LBB0_20
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	str	xzr, [sp, #40]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x27]
	ldr	w9, [x28]
	stp	w9, w8, [sp, #24]
	add	x2, sp, #8
	add	x3, sp, #40
	mov	x0, x26
	mov	x1, x24
	bl	_getaddrinfo
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x20, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_pcap_snprintf
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x26, [sp, #40]
	cbz	x26, LBB0_14
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x26, #8]
	mov	x0, x22
	bl	_sock_cmpaddr
	cbz	x0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x26, [x26]
	cbnz	x26, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #40]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, #0
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_freeaddrinfo
	str	xzr, [sp, #40]
	b	LBB0_6
LBB0_16:
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_sock_geterror
	mov	w0, #-2
	b	LBB0_17
LBB0_19:
	mov	x0, x21
	bl	_free
	ldr	x0, [sp, #40]
	bl	_freeaddrinfo
	mov	w0, #0
	b	LBB0_17
LBB0_20:
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_freeaddrinfo
	str	xzr, [sp, #40]
LBB0_22:
	cbz	x20, LBB0_24
; %bb.23:
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_pcap_snprintf
LBB0_24:
	mov	x0, x21
	bl	_free
	mov	w0, #-1
	b	LBB0_17
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sock_check_hostlist(), malloc() failed"

	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"0"

l_.str.2:                               ; @.str.2
	.asciz	"getaddrinfo() %s"

l_.str.3:                               ; @.str.3
	.asciz	"The host is not in the allowed host list. Connection refused."

.subsections_via_symbols
