	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function discovery_target_filtered_out
_discovery_target_filtered_out:         ## @discovery_target_filtered_out
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %r13
	movq	8(%rsi), %r12
	testq	%r13, %r13
	jne	LBB0_2
## %bb.1:
	movq	8(%r12), %r13
LBB0_2:
	movq	24(%r14), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rax
	movq	_PG_FILTER_UNKNOWN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	_PG_FILTER_PORTAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.3:
	leaq	20(%r14), %rsi
	movq	%r13, %rdi
	callq	_auth_portal_check
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	movslq	(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_4:
	movq	(%rbx), %rax
LBB0_5:
	movq	_PG_FILTER_PORTAL_NAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.6:
	movl	16(%r14), %esi
	movq	%r13, %rdi
	callq	_auth_name_check
	testq	%rax, %rax
	je	LBB0_7
## %bb.14:
	movslq	(%r12), %rsi
	leaq	L_.str.1(%rip), %rdi
LBB0_13:
	xorl	%eax, %eax
	callq	_log_debugx
LBB0_20:
	movl	$1, %r15d
	jmp	LBB0_21
LBB0_7:
	movq	(%rbx), %rax
LBB0_8:
	movq	_PG_FILTER_PORTAL_NAME_AUTH@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jl	LBB0_21
## %bb.9:
	movq	_AG_TYPE_NO_AUTHENTICATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r13)
	jne	LBB0_10
LBB0_21:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.15:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_assert
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_auth_find
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	8(%r14), %rdi
	movl	(%rax), %esi
	callq	_chap_authenticate
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	movq	(%r14), %rsi
	movl	(%r12), %edx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_19
LBB0_11:
	movq	8(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rax, (%rcx)
	sete	%dil
	callq	_assert
	movslq	(%r12), %rsi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_16:
	movq	(%r14), %rsi
	movl	(%r12), %edx
	leaq	L_.str.3(%rip), %rdi
LBB0_19:
	xorl	%eax, %eax
	callq	_log_debugx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_FILTER_UNKNOWN,8,3          ## @PG_FILTER_UNKNOWN
	.comm	_PG_FILTER_PORTAL,8,3           ## @PG_FILTER_PORTAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"initiator does not match initiator portals allowed for target \"%s\"; skipping"

	.comm	_PG_FILTER_PORTAL_NAME,8,3      ## @PG_FILTER_PORTAL_NAME
L_.str.1:                               ## @.str.1
	.asciz	"initiator does not match initiator names allowed for target \"%s\"; skipping"

	.comm	_PG_FILTER_PORTAL_NAME_AUTH,8,3 ## @PG_FILTER_PORTAL_NAME_AUTH
	.comm	_AG_TYPE_NO_AUTHENTICATION,8,3  ## @AG_TYPE_NO_AUTHENTICATION
L_.str.2:                               ## @.str.2
	.asciz	"initiator didn't authenticate, but target \"%s\" requires CHAP; skipping"

L_.str.3:                               ## @.str.3
	.asciz	"CHAP user \"%s\" doesn't match target \"%s\"; skipping"

L_.str.4:                               ## @.str.4
	.asciz	"password for CHAP user \"%s\" doesn't match target \"%s\"; skipping"

	.no_dead_strip	_discovery_target_filtered_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function discovery_target_filtered_out
_discovery_target_filtered_out:         ; @discovery_target_filtered_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	x20, x21, [x1]
	cbnz	x20, LBB0_2
; %bb.1:
	ldr	x20, [x21, #8]
LBB0_2:
	ldr	x8, [x19, #24]
	ldr	x22, [x8]
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _PG_FILTER_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PG_FILTER_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _PG_FILTER_PORTAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PG_FILTER_PORTAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.3:
	add	x1, x19, #20
	mov	x0, x20
	bl	_auth_portal_check
	cbz	x0, LBB0_5
; %bb.4:
	ldrsw	x1, [x21]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
	ldr	x8, [x22]
LBB0_6:
Lloh8:
	adrp	x9, _PG_FILTER_PORTAL_NAME@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PG_FILTER_PORTAL_NAME@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_11
; %bb.7:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_auth_name_check
	cbz	x0, LBB0_10
; %bb.8:
	ldrsw	x1, [x21]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_log_debugx
	mov	w0, #1
	b	LBB0_14
LBB0_10:
	ldr	x8, [x22]
LBB0_11:
Lloh13:
	adrp	x9, _PG_FILTER_PORTAL_NAME_AUTH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PG_FILTER_PORTAL_NAME_AUTH@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_13
; %bb.12:
	ldr	x9, [x20]
Lloh16:
	adrp	x8, _AG_TYPE_NO_AUTHENTICATION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AG_TYPE_NO_AUTHENTICATION@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_15
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_19
; %bb.16:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x1, [x19]
	mov	x0, x20
	bl	_auth_find
	cbz	x0, LBB0_20
; %bb.17:
	ldr	x8, [x19, #8]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_chap_authenticate
	cbz	w0, LBB0_14
; %bb.18:
	ldr	x1, [x19]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_19:
	ldr	x9, [x22, #8]
	ldr	x9, [x9]
	cmp	x9, x8
	cset	w0, eq
	bl	_assert
	ldrsw	x1, [x21]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_20:
	ldr	x1, [x19]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_FILTER_UNKNOWN,8,3          ; @PG_FILTER_UNKNOWN
	.comm	_PG_FILTER_PORTAL,8,3           ; @PG_FILTER_PORTAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initiator does not match initiator portals allowed for target \"%s\"; skipping"

	.comm	_PG_FILTER_PORTAL_NAME,8,3      ; @PG_FILTER_PORTAL_NAME
l_.str.1:                               ; @.str.1
	.asciz	"initiator does not match initiator names allowed for target \"%s\"; skipping"

	.comm	_PG_FILTER_PORTAL_NAME_AUTH,8,3 ; @PG_FILTER_PORTAL_NAME_AUTH
	.comm	_AG_TYPE_NO_AUTHENTICATION,8,3  ; @AG_TYPE_NO_AUTHENTICATION
l_.str.2:                               ; @.str.2
	.asciz	"initiator didn't authenticate, but target \"%s\" requires CHAP; skipping"

l_.str.3:                               ; @.str.3
	.asciz	"CHAP user \"%s\" doesn't match target \"%s\"; skipping"

l_.str.4:                               ; @.str.4
	.asciz	"password for CHAP user \"%s\" doesn't match target \"%s\"; skipping"

	.no_dead_strip	_discovery_target_filtered_out
.subsections_via_symbols
