	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_set_debug                ## -- Begin function pfctl_set_debug
	.p2align	4, 0x90
_pfctl_set_debug:                       ## @pfctl_set_debug
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_loadopt@GOTPCREL(%rip), %rax
	movq	_PFCTL_FLAG_OPTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	callq	_warnx
	movl	$-1, %r14d
	jmp	LBB0_14
LBB0_2:
	movq	_PF_DEBUG_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_PF_DEBUG_URGENT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_PF_DEBUG_MISC@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_PF_DEBUG_NOISY@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, (%rbx)
	movl	%eax, -28(%rbp)
	movq	_PF_OPT_NOACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_12
## %bb.10:
	movq	_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DIOCSETDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_12:
	movq	_PF_OPT_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rsi
	callq	_printf
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"none"

	.comm	_PF_DEBUG_NONE,4,2              ## @PF_DEBUG_NONE
L_.str.1:                               ## @.str.1
	.asciz	"urgent"

	.comm	_PF_DEBUG_URGENT,4,2            ## @PF_DEBUG_URGENT
L_.str.2:                               ## @.str.2
	.asciz	"misc"

	.comm	_PF_DEBUG_MISC,4,2              ## @PF_DEBUG_MISC
L_.str.3:                               ## @.str.3
	.asciz	"loud"

	.comm	_PF_DEBUG_NOISY,4,2             ## @PF_DEBUG_NOISY
L_.str.4:                               ## @.str.4
	.asciz	"unknown debug level \"%s\""

	.comm	_PF_OPT_NOACTION,4,2            ## @PF_OPT_NOACTION
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCSETDEBUG,4,2               ## @DIOCSETDEBUG
L_.str.5:                               ## @.str.5
	.asciz	"DIOCSETDEBUG"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_set_debug                ; -- Begin function pfctl_set_debug
	.p2align	2
_pfctl_set_debug:                       ; @pfctl_set_debug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_15
; %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_6
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.3:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.4:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.5:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_warnx
	mov	w0, #-1
	b	LBB0_16
LBB0_6:
Lloh16:
	adrp	x8, _PF_DEBUG_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PF_DEBUG_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh18:
	adrp	x8, _PF_DEBUG_URGENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PF_DEBUG_URGENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh20:
	adrp	x8, _PF_DEBUG_MISC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PF_DEBUG_MISC@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _PF_DEBUG_NOISY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PF_DEBUG_NOISY@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	w9, #1
	str	w9, [x20]
	str	w8, [sp, #12]
	ldr	w8, [x20, #4]
Lloh24:
	adrp	x9, _PF_OPT_NOACTION@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PF_OPT_NOACTION@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.11:
Lloh27:
	adrp	x8, _dev@GOTPAGE
Lloh28:
	ldr	x8, [x8, _dev@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _DIOCSETDEBUG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DIOCSETDEBUG@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	cbz	x0, LBB0_13
; %bb.12:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_13:
	ldr	w8, [x20, #4]
Lloh35:
	adrp	x9, _PF_OPT_VERBOSE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PF_OPT_VERBOSE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh38:
	adrp	x0, l_.str.6@PAGE
Lloh39:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.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"

	.comm	_PF_DEBUG_NONE,4,2              ; @PF_DEBUG_NONE
l_.str.1:                               ; @.str.1
	.asciz	"urgent"

	.comm	_PF_DEBUG_URGENT,4,2            ; @PF_DEBUG_URGENT
l_.str.2:                               ; @.str.2
	.asciz	"misc"

	.comm	_PF_DEBUG_MISC,4,2              ; @PF_DEBUG_MISC
l_.str.3:                               ; @.str.3
	.asciz	"loud"

	.comm	_PF_DEBUG_NOISY,4,2             ; @PF_DEBUG_NOISY
l_.str.4:                               ; @.str.4
	.asciz	"unknown debug level \"%s\""

	.comm	_PF_OPT_NOACTION,4,2            ; @PF_OPT_NOACTION
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCSETDEBUG,4,2               ; @DIOCSETDEBUG
l_.str.5:                               ; @.str.5
	.asciz	"DIOCSETDEBUG"

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

.subsections_via_symbols
