	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_portal_group_set_filter        ## -- Begin function portal_group_set_filter
	.p2align	4, 0x90
_portal_group_set_filter:               ## @portal_group_set_filter
	.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	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	4(%r14), %edx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_12
LBB0_1:
	movq	_PG_FILTER_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_PG_FILTER_PORTAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_PG_FILTER_PORTAL_NAME@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_PG_FILTER_PORTAL_NAME_AUTH@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	(%r14), %ecx
	movq	_PG_FILTER_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_13
## %bb.3:
	cmpl	%eax, %ecx
	je	LBB0_13
## %bb.4:
	movl	4(%r14), %edx
	leaq	L_.str.5(%rip), %rdi
LBB0_12:
	movq	%rbx, %rsi
	callq	_log_warnx
	movl	$1, %eax
	jmp	LBB0_14
LBB0_13:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"none"

	.comm	_PG_FILTER_NONE,4,2             ## @PG_FILTER_NONE
L_.str.1:                               ## @.str.1
	.asciz	"portal"

	.comm	_PG_FILTER_PORTAL,4,2           ## @PG_FILTER_PORTAL
L_.str.2:                               ## @.str.2
	.asciz	"portal-name"

	.comm	_PG_FILTER_PORTAL_NAME,4,2      ## @PG_FILTER_PORTAL_NAME
L_.str.3:                               ## @.str.3
	.asciz	"portal-name-auth"

	.comm	_PG_FILTER_PORTAL_NAME_AUTH,4,2 ## @PG_FILTER_PORTAL_NAME_AUTH
L_.str.4:                               ## @.str.4
	.asciz	"invalid discovery-filter \"%s\" for portal-group \"%s\"; valid values are \"none\", \"portal\", \"portal-name\", and \"portal-name-auth\""

	.comm	_PG_FILTER_UNKNOWN,4,2          ## @PG_FILTER_UNKNOWN
L_.str.5:                               ## @.str.5
	.asciz	"cannot set discovery-filter to \"%s\" for portal-group \"%s\"; already has a different value"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_portal_group_set_filter        ; -- Begin function portal_group_set_filter
	.p2align	2
_portal_group_set_filter:               ; @portal_group_set_filter
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w2, [x20, #4]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_5:
Lloh10:
	adrp	x8, _PG_FILTER_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PG_FILTER_NONE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _PG_FILTER_PORTAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PG_FILTER_PORTAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x8, _PG_FILTER_PORTAL_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PG_FILTER_PORTAL_NAME@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _PG_FILTER_PORTAL_NAME_AUTH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PG_FILTER_PORTAL_NAME_AUTH@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	ldr	w9, [x20]
Lloh18:
	adrp	x10, _PG_FILTER_UNKNOWN@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PG_FILTER_UNKNOWN@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	w9, w10
	ccmp	w9, w8, #4, ne
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	str	w8, [x20]
	b	LBB0_13
LBB0_11:
	ldr	w2, [x20, #4]
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_12:
	mov	x1, x19
	bl	_log_warnx
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

	.comm	_PG_FILTER_NONE,4,2             ; @PG_FILTER_NONE
l_.str.1:                               ; @.str.1
	.asciz	"portal"

	.comm	_PG_FILTER_PORTAL,4,2           ; @PG_FILTER_PORTAL
l_.str.2:                               ; @.str.2
	.asciz	"portal-name"

	.comm	_PG_FILTER_PORTAL_NAME,4,2      ; @PG_FILTER_PORTAL_NAME
l_.str.3:                               ; @.str.3
	.asciz	"portal-name-auth"

	.comm	_PG_FILTER_PORTAL_NAME_AUTH,4,2 ; @PG_FILTER_PORTAL_NAME_AUTH
l_.str.4:                               ; @.str.4
	.asciz	"invalid discovery-filter \"%s\" for portal-group \"%s\"; valid values are \"none\", \"portal\", \"portal-name\", and \"portal-name-auth\""

	.comm	_PG_FILTER_UNKNOWN,4,2          ; @PG_FILTER_UNKNOWN
l_.str.5:                               ; @.str.5
	.asciz	"cannot set discovery-filter to \"%s\" for portal-group \"%s\"; already has a different value"

.subsections_via_symbols
