	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pf_get_sport
_pf_get_sport:                          ## @pf_get_sport
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r12d
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%edi, %ebx
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_bzero
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %rsi
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdx
	movq	24(%rbp), %rcx
	movq	%r14, %r8
	movq	56(%rbp), %r9
	callq	_pf_map_addr
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_28
## %bb.1:
	movl	16(%rbp), %r13d
	movq	_IPPROTO_ICMP@GOTPCREL(%rip), %rax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, (%rax)
	movl	$65535, %r14d                   ## imm = 0xFFFF
	cmovnel	48(%rbp), %r14d
	movl	$1, %r15d
	cmovnel	40(%rbp), %r15d
	leaq	-88(%rbp), %rdi
	movl	$32, %esi
	callq	_bzero
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -80(%rbp)
	movq	%rbx, -64(%rbp)
	movq	-88(%rbp), %rax
	movl	%r13d, (%rax)
	movq	-72(%rbp), %rbx
	movl	-80(%rbp), %r13d
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_PF_ACPY
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	addq	$4, %rbx
	movq	%rbx, %rdi
	movq	24(%rbp), %rsi
	movl	%r13d, %edx
	callq	_PF_ACPY
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IPPROTO_ICMP@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
	orl	%r14d, %eax
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax
	movl	%r12d, 4(%rax)
	movq	_PF_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdi
	xorl	%edx, %edx
	callq	_pf_find_state_all
	testq	%rax, %rax
	je	LBB0_7
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PF_POOL_TYPEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	andl	(%rsi), %eax
	addl	$-129, %eax
	movl	$1, %ecx
	cmpl	$1, %eax
	ja	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	24(%rbp), %r12
	movq	%r12, %rcx
	leaq	-144(%rbp), %r13
	movq	%r13, %r8
	movq	56(%rbp), %r9
	callq	_pf_map_addr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_PF_AEQ
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	$1, %ecx
	jne	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rbx
	movl	-80(%rbp), %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %r15d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_htons
	movq	-88(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	_PF_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdi
	xorl	%edx, %edx
	callq	_pf_find_state_all
	movl	%r14d, %r15d
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_26
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r13d
	cmovgl	%r15d, %r13d
	cmovgel	%r14d, %r15d
	xorl	%eax, %eax
	callq	_arc4random
	movl	%r13d, %ecx
	subl	%r15d, %ecx
	incl	%ecx
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	addl	%r15d, %ebx
	movl	%ebx, %r14d
	cmpl	%r13d, %ebx
	jg	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r12d
	movl	%ebx, %r14d
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	jg	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	callq	_htons
	movq	-88(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	_PF_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdi
	xorl	%edx, %edx
	callq	_pf_find_state_all
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	%r13d, %r12d
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	leal	1(%r12), %eax
	cmpl	$65535, %r12d                   ## imm = 0xFFFF
	movl	%eax, %r12d
	jl	LBB0_12
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r14d
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r15d, %r14d
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpl	$65536, %ebx                    ## imm = 0x10000
	jg	LBB0_19
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=2
	decl	%r14d
	movl	%r14d, %edi
	callq	_htons
	movq	-88(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	_PF_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdi
	xorl	%edx, %edx
	callq	_pf_find_state_all
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_26
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %r14d
	jmp	LBB0_20
LBB0_13:
	movl	%r12d, %r14d
LBB0_26:
	movl	%r14d, %edi
	callq	_htons
	jmp	LBB0_27
LBB0_22:
	movl	$1, %ecx
	jmp	LBB0_28
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_27:
	movq	32(%rbp), %rcx
	movl	%eax, (%rcx)
	xorl	%ecx, %ecx
LBB0_28:
	movl	%ecx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_ICMP,8,3               ## @IPPROTO_ICMP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_PF_IN,4,2                      ## @PF_IN
	.comm	_PF_POOL_TYPEMASK,4,2           ## @PF_POOL_TYPEMASK
	.no_dead_strip	_pf_get_sport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pf_get_sport
_pf_get_sport:                          ; @pf_get_sport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x7
	mov	x28, x6
	mov	x27, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x25, [x29, #32]
	add	x0, sp, #32
	mov	w1, #32
	bl	_bzero
	add	x4, sp, #32
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x5, x25
	bl	_pf_map_addr
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_24
LBB0_2:
	stp	x19, x21, [sp, #16]             ; 16-byte Folded Spill
	ldp	w9, w8, [x29, #24]
Lloh0:
	adrp	x11, _IPPROTO_ICMP@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IPPROTO_ICMP@GOTPAGEOFF]
	ldr	x10, [x29, #16]
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
Lloh2:
	ldr	x10, [x11]
	cmp	x10, x23
	mov	w10, #65535
	csel	w26, w10, w8, eq
	csinc	w21, w9, wzr, ne
	add	x0, sp, #64
	mov	w1, #32
	bl	_bzero
	str	w24, [sp, #72]
	str	x23, [sp, #88]
	ldr	x8, [sp, #64]
	str	w28, [x8]
	ldr	x19, [sp, #80]
	ldr	w28, [sp, #72]
	mov	x0, x19
	mov	x1, x27
	mov	x2, x28
	bl	_PF_ACPY
Lloh3:
	adrp	x27, _PF_IN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _PF_IN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	add	x0, x19, #4
	mov	x1, x20
	mov	x2, x28
	bl	_PF_ACPY
Lloh5:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _IPPROTO_ICMP@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IPPROTO_ICMP@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x23
	ccmp	x9, x23, #4, ne
	ccmp	x10, x23, #4, ne
	orr	w8, w21, w26
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #64]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w9, [x8, #4]
	ldr	w1, [x27]
	add	x0, sp, #64
	mov	x2, #0
	bl	_pf_find_state_all
	cbz	x0, LBB0_22
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
Lloh14:
	adrp	x9, _PF_POOL_TYPEMASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PF_POOL_TYPEMASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #129
	cmp	w8, #1
	b.hi	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x4, sp, #32
	mov	x0, x24
	mov	x1, x22
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	mov	x3, x20
	mov	x5, x25
	bl	_pf_map_addr
	cbnz	x0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #32
	mov	x1, x20
	mov	x2, x24
	bl	_PF_AEQ
	cbnz	w0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp, #80]
	ldr	w28, [sp, #72]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, w26
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_htons
	ldr	x8, [sp, #64]
	str	w0, [x8, #4]
	ldr	w1, [x27]
	add	x0, sp, #64
	mov	x2, #0
	bl	_pf_find_state_all
	mov	x21, x26
	cbnz	x0, LBB0_5
	b	LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	csel	w19, w21, w26, gt
	csel	w21, w21, w26, lt
	bl	_arc4random
	sub	w8, w19, w21
	add	w8, w8, #1
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	add	w28, w8, w21
	cmp	w28, w19
	b.gt	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x28
	cmp	w28, #16, lsl #12               ; =65536
	b.ge	LBB0_16
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	bl	_htons
	ldr	x8, [sp, #64]
	str	w0, [x8, #4]
	ldr	w1, [x27]
	add	x0, sp, #64
	mov	x2, #0
	bl	_pf_find_state_all
	cbz	x0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w26, w19
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	add	w8, w26, #1
	mov	w9, #65535
	cmp	w26, w9
	mov	x26, x8
	b.lt	LBB0_13
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x28
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w26, w21
	b.le	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	cmp	w28, #16, lsl #12               ; =65536
	b.gt	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
	sub	w26, w26, #1
	mov	x0, x26
	bl	_htons
	ldr	x8, [sp, #64]
	str	w0, [x8, #4]
	ldr	w1, [x27]
	add	x0, sp, #64
	mov	x2, #0
	bl	_pf_find_state_all
	cbnz	x0, LBB0_17
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x19
	b	LBB0_5
LBB0_21:
	mov	x0, x26
	bl	_htons
	mov	x8, x0
	b	LBB0_23
LBB0_22:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
LBB0_23:
	mov	w0, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_24:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_ICMP,8,3               ; @IPPROTO_ICMP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_PF_IN,4,2                      ; @PF_IN
	.comm	_PF_POOL_TYPEMASK,4,2           ; @PF_POOL_TYPEMASK
	.no_dead_strip	_pf_get_sport
.subsections_via_symbols
