	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_ruleset_trans            ## -- Begin function pfctl_ruleset_trans
	.p2align	4, 0x90
_pfctl_ruleset_trans:                   ## @pfctl_ruleset_trans
	.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	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	(%rdi), %r14d
	movq	_PFCTL_FLAG_NAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	_PF_RULESET_NAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pfctl_add_trans
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movq	8(%rbx), %rdi
	movq	_PF_RULESET_BINAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pfctl_add_trans
	testq	%rax, %rax
	jne	LBB0_15
## %bb.3:
	movq	8(%rbx), %rdi
	movq	_PF_RULESET_RDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pfctl_add_trans
	testq	%rax, %rax
	jne	LBB0_15
LBB0_4:
	movq	24(%rbx), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_8
## %bb.5:
	movq	_altqsupport@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_PFCTL_FLAG_ALTQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rdi
	movq	_PF_RULESET_ALTQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pfctl_add_trans
	movl	$2, %r12d
	testq	%rax, %rax
	jne	LBB0_15
LBB0_8:
	movl	(%rbx), %eax
	movq	_PFCTL_FLAG_FILTER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	movq	8(%rbx), %rdi
	movq	_PF_RULESET_SCRUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pfctl_add_trans
	movl	$3, %r12d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:
	movq	8(%rbx), %rdi
	movq	_PF_RULESET_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pfctl_add_trans
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	movl	(%rbx), %eax
LBB0_12:
	movq	_PFCTL_FLAG_TABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movq	8(%rbx), %rdi
	movq	_PF_RULESET_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pfctl_add_trans
	movl	$4, %r12d
	testq	%rax, %rax
	jne	LBB0_15
LBB0_14:
	movl	16(%rbx), %edi
	movq	8(%rbx), %rsi
	movq	_DIOCXBEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %ecx
	callq	_pfctl_trans
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx,4), %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PFCTL_FLAG_NAT,4,2             ## @PFCTL_FLAG_NAT
	.comm	_PF_RULESET_NAT,4,2             ## @PF_RULESET_NAT
	.comm	_PF_RULESET_BINAT,4,2           ## @PF_RULESET_BINAT
	.comm	_PF_RULESET_RDR,4,2             ## @PF_RULESET_RDR
	.comm	_altqsupport,8,3                ## @altqsupport
	.comm	_PFCTL_FLAG_ALTQ,4,2            ## @PFCTL_FLAG_ALTQ
	.comm	_PF_RULESET_ALTQ,4,2            ## @PF_RULESET_ALTQ
	.comm	_PFCTL_FLAG_FILTER,4,2          ## @PFCTL_FLAG_FILTER
	.comm	_PF_RULESET_SCRUB,4,2           ## @PF_RULESET_SCRUB
	.comm	_PF_RULESET_FILTER,4,2          ## @PF_RULESET_FILTER
	.comm	_PFCTL_FLAG_TABLE,4,2           ## @PFCTL_FLAG_TABLE
	.comm	_PF_RULESET_TABLE,4,2           ## @PF_RULESET_TABLE
	.comm	_DIOCXBEGIN,4,2                 ## @DIOCXBEGIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_ruleset_trans            ; -- Begin function pfctl_ruleset_trans
	.p2align	2
_pfctl_ruleset_trans:                   ; @pfctl_ruleset_trans
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	ldr	w19, [x0]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _PFCTL_FLAG_NAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PFCTL_FLAG_NAT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _PF_RULESET_NAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_RULESET_NAT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_pfctl_add_trans
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #8]
Lloh6:
	adrp	x8, _PF_RULESET_BINAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PF_RULESET_BINAT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_pfctl_add_trans
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x20, #8]
Lloh9:
	adrp	x8, _PF_RULESET_RDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PF_RULESET_RDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_pfctl_add_trans
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_18
LBB0_5:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _altqsupport@GOTPAGE
Lloh13:
	ldr	x9, [x9, _altqsupport@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x22
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_9
; %bb.6:
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _PFCTL_FLAG_ALTQ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PFCTL_FLAG_ALTQ@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	x0, [x20, #8]
Lloh18:
	adrp	x8, _PF_RULESET_ALTQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PF_RULESET_ALTQ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_pfctl_add_trans
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #2
	b	LBB0_18
LBB0_9:
	ldr	w8, [x20]
Lloh21:
	adrp	x9, _PFCTL_FLAG_FILTER@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PFCTL_FLAG_FILTER@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
	ldr	x0, [x20, #8]
Lloh24:
	adrp	x8, _PF_RULESET_SCRUB@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PF_RULESET_SCRUB@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_pfctl_add_trans
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x20, #8]
Lloh27:
	adrp	x8, _PF_RULESET_FILTER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PF_RULESET_FILTER@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_pfctl_add_trans
	cbz	x0, LBB0_13
LBB0_12:
	mov	w0, #3
	b	LBB0_18
LBB0_13:
	ldr	w8, [x20]
LBB0_14:
Lloh30:
	adrp	x9, _PFCTL_FLAG_TABLE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PFCTL_FLAG_TABLE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
	ldr	x0, [x20, #8]
Lloh33:
	adrp	x8, _PF_RULESET_TABLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PF_RULESET_TABLE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_pfctl_add_trans
	cbz	x0, LBB0_17
; %bb.16:
	mov	w0, #4
	b	LBB0_18
LBB0_17:
	ldr	w0, [x20, #16]
	ldr	x1, [x20, #8]
Lloh36:
	adrp	x8, _DIOCXBEGIN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DIOCXBEGIN@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_pfctl_trans
	cmp	x0, #0
	mov	w8, #5
	csel	w0, wzr, w8, eq
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_PFCTL_FLAG_NAT,4,2             ; @PFCTL_FLAG_NAT
	.comm	_PF_RULESET_NAT,4,2             ; @PF_RULESET_NAT
	.comm	_PF_RULESET_BINAT,4,2           ; @PF_RULESET_BINAT
	.comm	_PF_RULESET_RDR,4,2             ; @PF_RULESET_RDR
	.comm	_altqsupport,8,3                ; @altqsupport
	.comm	_PFCTL_FLAG_ALTQ,4,2            ; @PFCTL_FLAG_ALTQ
	.comm	_PF_RULESET_ALTQ,4,2            ; @PF_RULESET_ALTQ
	.comm	_PFCTL_FLAG_FILTER,4,2          ; @PFCTL_FLAG_FILTER
	.comm	_PF_RULESET_SCRUB,4,2           ; @PF_RULESET_SCRUB
	.comm	_PF_RULESET_FILTER,4,2          ; @PF_RULESET_FILTER
	.comm	_PFCTL_FLAG_TABLE,4,2           ; @PFCTL_FLAG_TABLE
	.comm	_PF_RULESET_TABLE,4,2           ; @PF_RULESET_TABLE
	.comm	_DIOCXBEGIN,4,2                 ; @DIOCXBEGIN
.subsections_via_symbols
