	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_set_logif                ## -- Begin function pfctl_set_logif
	.p2align	4, 0x90
_pfctl_set_logif:                       ## @pfctl_set_logif
	.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	_loadopt@GOTPCREL(%rip), %rax
	movq	_PFCTL_FLAG_OPTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	jmp	LBB0_5
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_free
	movq	$0, 8(%rbx)
LBB0_5:
	movl	$1, (%rbx)
	movq	_PF_OPT_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	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	"none"

L_.str.1:                               ## @.str.1
	.asciz	"pfctl_set_logif: strdup"

	.comm	_PF_OPT_VERBOSE,4,2             ## @PF_OPT_VERBOSE
L_.str.2:                               ## @.str.2
	.asciz	"set loginterface %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_set_logif                ; -- Begin function pfctl_set_logif
	.p2align	2
_pfctl_set_logif:                       ; @pfctl_set_logif
	.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
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_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_strdup
	str	x0, [x20, #8]
	cbnz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	b	LBB0_5
LBB0_4:
	ldr	x0, [x20, #8]
	bl	_free
	str	xzr, [x20, #8]
LBB0_5:
	mov	w8, #1
	str	w8, [x20]
	ldr	w8, [x20, #4]
Lloh10:
	adrp	x9, _PF_OPT_VERBOSE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PF_OPT_VERBOSE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.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	"none"

l_.str.1:                               ; @.str.1
	.asciz	"pfctl_set_logif: strdup"

	.comm	_PF_OPT_VERBOSE,4,2             ; @PF_OPT_VERBOSE
l_.str.2:                               ; @.str.2
	.asciz	"set loginterface %s\n"

.subsections_via_symbols
