	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_insertrule                     ## -- Begin function insertrule
	.p2align	4, 0x90
_insertrule:                            ## @insertrule
	.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	%rsi, %r15
	movl	%edi, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r14
	movl	(%r15), %eax
	movl	%eax, 16(%r14)
	movq	_divert_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.2:
	movq	_table_head@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	setne	%dl
	je	LBB0_7
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	decl	%ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rcx
	addl	$-1, %ebx
	setb	%al
	testq	%rcx, %rcx
	setne	%dl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	%al, %al
	jne	LBB0_5
LBB0_7:
	testb	%dl, %dl
	je	LBB0_9
## %bb.8:
	movq	%rcx, 8(%r14)
	movq	(%rcx), %rax
	movq	%rax, (%r14)
	movq	%r14, (%rcx)
	cmpq	$0, (%r14)
	jne	LBB0_15
	jmp	LBB0_14
LBB0_9:
	movq	_table_tail@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movq	%rcx, (%r14)
	movq	$0, 8(%r14)
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.10:
	movq	_table_head@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_12:
	addq	$8, %rcx
LBB0_13:
	movq	%r14, (%rcx)
LBB0_14:
	movq	%r14, (%rsi)
LBB0_15:
	movq	_divert_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_divert_lock,4,2                ## @divert_lock
	.comm	_table_head,8,3                 ## @table_head
	.comm	_table_tail,8,3                 ## @table_tail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_insertrule                     ; -- Begin function insertrule
	.p2align	2
_insertrule:                            ; @insertrule
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	w8, [x21]
	str	w8, [x0, #16]
Lloh3:
	adrp	x0, _divert_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _divert_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x8, _table_head@GOTPAGE
Lloh6:
	ldr	x8, [x8, _table_head@GOTPAGEOFF]
	tbnz	w20, #31, LBB0_9
; %bb.2:
	ldr	x9, [x8]
	cmp	x9, #0
	cset	w10, ne
	ccmp	w20, #0, #4, ne
	b.eq	LBB0_6
; %bb.3:
	sub	w11, w20, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9, #8]
	cmp	x9, #0
	cset	w10, ne
	subs	w11, w11, #1
	cset	w12, hs
	cbz	x9, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w12, #0, LBB0_4
LBB0_6:
	tbz	w10, #0, LBB0_9
; %bb.7:
	ldr	x8, [x9]
	stp	x8, x9, [x19]
	str	x19, [x9]
	ldr	x8, [x19]
	cbnz	x8, LBB0_11
; %bb.8:
Lloh7:
	adrp	x9, _table_head@GOTPAGE
Lloh8:
	ldr	x9, [x9, _table_head@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x9, _table_tail@GOTPAGE
Lloh10:
	ldr	x9, [x9, _table_tail@GOTPAGEOFF]
	ldr	x10, [x9]
	stp	x10, xzr, [x19]
	add	x11, x10, #8
	cmp	x10, #0
	csel	x8, x8, x11, eq
	str	x19, [x8]
LBB0_10:
	str	x19, [x9]
LBB0_11:
Lloh11:
	adrp	x0, _divert_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _divert_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_divert_lock,4,2                ; @divert_lock
	.comm	_table_head,8,3                 ; @table_head
	.comm	_table_tail,8,3                 ; @table_tail
.subsections_via_symbols
