	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipreass_drain_tomax
_ipreass_drain_tomax:                   ## @ipreass_drain_tomax
	.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	_IPREASS_NHASH@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.1:
	xorl	%r13d, %r13d
	movq	_V_ipq@GOTPCREL(%rip), %r14
	movq	_V_ipreass_maxbucketsize@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_IPQ_UNLOCK
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%r13d, %edi
	callq	_IPQ_LOCK
	movq	(%r14), %rax
	movq	%r13, %rbx
	shlq	$4, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rbx), %rcx
	cmpq	(%r12), %rcx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	(%rax,%rbx), %rdi
	addq	$8, %rdi
	movq	_ipqhead@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TAILQ_LAST
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ipq_timeout
	movq	(%r14), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_V_ipq_zone@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_uma_zone_get_max
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_uma_zone_get_cur
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %eax
	jle	LBB0_15
## %bb.8:
	movq	_V_ipq@GOTPCREL(%rip), %r13
	movq	_ipqhead@GOTPCREL(%rip), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	_V_ipq_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_uma_zone_get_cur
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_15
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	%ebx, %edi
	callq	_IPQ_UNLOCK
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_IPQ_LOCK
	movq	(%r13), %rax
	leaq	(%rax,%r14), %rdi
	addq	$8, %rdi
	movl	(%r12), %esi
	callq	_TAILQ_LAST
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r13), %rdi
	addq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ipq_timeout
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPREASS_NHASH,4,2              ## @IPREASS_NHASH
	.comm	_V_ipq,8,3                      ## @V_ipq
	.comm	_V_ipreass_maxbucketsize,8,3    ## @V_ipreass_maxbucketsize
	.comm	_ipqhead,4,2                    ## @ipqhead
	.comm	_V_ipq_zone,4,2                 ## @V_ipq_zone
	.no_dead_strip	_ipreass_drain_tomax
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipreass_drain_tomax
_ipreass_drain_tomax:                   ; @ipreass_drain_tomax
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x21, _IPREASS_NHASH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IPREASS_NHASH@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, #0
Lloh2:
	adrp	x20, _V_ipq@GOTPAGE
Lloh3:
	ldr	x20, [x20, _V_ipq@GOTPAGEOFF]
Lloh4:
	adrp	x22, _V_ipreass_maxbucketsize@GOTPAGE
Lloh5:
	ldr	x22, [x22, _V_ipreass_maxbucketsize@GOTPAGEOFF]
Lloh6:
	adrp	x23, _ipqhead@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ipqhead@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_IPQ_UNLOCK
	add	x19, x19, #1
	ldrsw	x8, [x21]
	cmp	x19, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x19
	bl	_IPQ_LOCK
	ldr	x8, [x20]
	lsl	x24, x19, #4
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x8, x24]
	ldr	x10, [x22]
	cmp	x9, x10
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x8, x8, x19, lsl #4
	add	x0, x8, #8
	ldr	w1, [x23]
	bl	_TAILQ_LAST
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x1, x0
	ldr	x8, [x20]
	add	x0, x8, x24
	bl	_ipq_timeout
	ldr	x8, [x20]
	b	LBB0_4
LBB0_7:
Lloh8:
	adrp	x22, _V_ipq_zone@GOTPAGE
Lloh9:
	ldr	x22, [x22, _V_ipq_zone@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_uma_zone_get_max
	mov	x19, x0
	ldr	w0, [x22]
	bl	_uma_zone_get_cur
	cmp	w0, w19
	b.le	LBB0_15
; %bb.8:
Lloh10:
	adrp	x23, _V_ipq@GOTPAGE
Lloh11:
	ldr	x23, [x23, _V_ipq@GOTPAGEOFF]
Lloh12:
	adrp	x24, _ipqhead@GOTPAGE
Lloh13:
	ldr	x24, [x24, _ipqhead@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x22]
	bl	_uma_zone_get_cur
	cmp	w0, w19
	b.le	LBB0_15
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x25, #0
	mov	x20, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x20
	bl	_IPQ_UNLOCK
	add	x20, x20, #1
	ldrsw	x8, [x21]
	add	x25, x25, #16
	cmp	x20, x8
	b.ge	LBB0_9
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_IPQ_LOCK
	ldr	x8, [x23]
	add	x8, x8, x25
	add	x0, x8, #8
	ldr	w1, [x24]
	bl	_TAILQ_LAST
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x1, x0
	ldr	x8, [x23]
	add	x0, x8, x25
	bl	_ipq_timeout
	b	LBB0_12
LBB0_15:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPREASS_NHASH,4,2              ; @IPREASS_NHASH
	.comm	_V_ipq,8,3                      ; @V_ipq
	.comm	_V_ipreass_maxbucketsize,8,3    ; @V_ipreass_maxbucketsize
	.comm	_ipqhead,4,2                    ; @ipqhead
	.comm	_V_ipq_zone,4,2                 ; @V_ipq_zone
	.no_dead_strip	_ipreass_drain_tomax
.subsections_via_symbols
