	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_fte
_insert_fte:                            ## @insert_fte
	.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	%rsi, %r14
	movq	%rdi, %r12
	leaq	4(%rdi), %r15
	movl	16(%rdi), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ida_simple_get
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	(%r12), %eax
	addl	%ebx, %eax
	movl	%eax, (%r14)
	leaq	12(%r12), %rdi
	leaq	8(%r14), %rsi
	movq	_rhash_fte@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rhashtable_insert_fast
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ida_simple_remove
	movl	%r13d, %ebx
	jmp	LBB0_4
LBB0_2:
	addq	$4, %r14
	addq	$8, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tree_add_node
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_rhash_fte,4,2                  ## @rhash_fte
	.no_dead_strip	_insert_fte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_fte
_insert_fte:                            ; @insert_fte
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	ldr	w2, [x0, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ida_simple_get
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x20
	ldr	w8, [x0], #12
	add	w8, w8, w22
	mov	x1, x21
	str	w8, [x1], #8
Lloh3:
	adrp	x8, _rhash_fte@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rhash_fte@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_rhashtable_insert_fast
	cbz	w0, LBB0_3
; %bb.2:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_ida_simple_remove
	mov	x22, x23
	b	LBB0_4
LBB0_3:
	add	x19, x21, #4
	add	x20, x20, #8
	mov	x0, x19
	mov	x1, x20
	bl	_tree_add_node
	mov	x0, x19
	mov	x1, x20
	bl	_list_add_tail
	mov	w22, #0
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_rhash_fte,4,2                  ; @rhash_fte
	.no_dead_strip	_insert_fte
.subsections_via_symbols
