	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_set_interface_flags      ## -- Begin function pfctl_set_interface_flags
	.p2align	4, 0x90
_pfctl_set_interface_flags:             ## @pfctl_set_interface_flags
	.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
	movl	%ecx, %r15d
	movq	_loadopt@GOTPCREL(%rip), %rax
	movq	_PFCTL_FLAG_OPTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.1:
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-48(%rbp), %rdi
	movl	$8, %esi
	callq	_bzero
	movl	%r13d, -48(%rbp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ifa_grouplookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	callq	_pfctl_set_interface_flags
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_4:
	movl	-44(%rbp), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcpy
	cmpl	$4, %eax
	jb	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	movq	_PF_OPT_NOACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_13
## %bb.7:
	movl	4(%r12), %edi
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.10:
	movq	_DIOCSETIFFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_12:
	movq	%r14, %rdi
	callq	_pfctl_check_skip_ifaces
	jmp	LBB0_13
LBB0_8:
	movq	_DIOCCLRIFFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_loadopt,4,2                    ## @loadopt
	.comm	_PFCTL_FLAG_OPTION,4,2          ## @PFCTL_FLAG_OPTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pfctl_set_interface_flags: strlcpy"

	.comm	_PF_OPT_NOACTION,4,2            ## @PF_OPT_NOACTION
	.comm	_DIOCCLRIFFLAG,4,2              ## @DIOCCLRIFFLAG
L_.str.1:                               ## @.str.1
	.asciz	"DIOCCLRIFFLAG"

	.comm	_DIOCSETIFFLAG,4,2              ## @DIOCSETIFFLAG
L_.str.2:                               ## @.str.2
	.asciz	"DIOCSETIFFLAG"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_set_interface_flags      ; -- Begin function pfctl_set_interface_flags
	.p2align	2
_pfctl_set_interface_flags:             ; @pfctl_set_interface_flags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _loadopt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _loadopt@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PFCTL_FLAG_OPTION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PFCTL_FLAG_OPTION@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.1:
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	str	w22, [sp, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_ifa_grouplookup
	cbz	x0, LBB0_4
; %bb.2:
	mov	x23, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x20
	bl	_pfctl_set_interface_flags
	ldr	x23, [x23, #8]
	cbnz	x23, LBB0_3
LBB0_4:
	ldr	w0, [sp, #12]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
	cmp	w0, #4
	b.lo	LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _PF_OPT_NOACTION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PF_OPT_NOACTION@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.7:
	ldr	w0, [x21, #4]
	cbz	w20, LBB0_11
; %bb.8:
Lloh11:
	adrp	x8, _DIOCSETIFFLAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIOCSETIFFLAG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_10
; %bb.9:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
	mov	x0, x19
	bl	_pfctl_check_skip_ifaces
	b	LBB0_13
LBB0_11:
Lloh16:
	adrp	x8, _DIOCCLRIFFLAG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DIOCCLRIFFLAG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_13
; %bb.12:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_loadopt,4,2                    ; @loadopt
	.comm	_PFCTL_FLAG_OPTION,4,2          ; @PFCTL_FLAG_OPTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pfctl_set_interface_flags: strlcpy"

	.comm	_PF_OPT_NOACTION,4,2            ; @PF_OPT_NOACTION
	.comm	_DIOCCLRIFFLAG,4,2              ; @DIOCCLRIFFLAG
l_.str.1:                               ; @.str.1
	.asciz	"DIOCCLRIFFLAG"

	.comm	_DIOCSETIFFLAG,4,2              ; @DIOCSETIFFLAG
l_.str.2:                               ; @.str.2
	.asciz	"DIOCSETIFFLAG"

.subsections_via_symbols
