	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uclogic_rdesc_template_apply   ## -- Begin function uclogic_rdesc_template_apply
	.p2align	4, 0x90
_uclogic_rdesc_template_apply:          ## @uclogic_rdesc_template_apply
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmemdup
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	$9, %rbx
	jl	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %r14
	movq	%rax, %r15
	addq	$64, %r15
	leaq	_uclogic_rdesc_template_apply.head(%rip), %r13
	movq	%rax, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%rcx,8), %r15
	addq	$64, %r15
	leaq	(%rbx,%rcx,8), %rbx
	cmpq	%r14, %r15
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_memcmp
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	cmpq	%r12, %rax
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %edi
	callq	_cpu_to_le32
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_put_unaligned
	movl	$9, %ecx
	jmp	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	3                               ## @uclogic_rdesc_template_apply.head
_uclogic_rdesc_template_apply.head:
	.quad	128                             ## 0x80

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uclogic_rdesc_template_apply   ; -- Begin function uclogic_rdesc_template_apply
	.p2align	2
_uclogic_rdesc_template_apply:          ; @uclogic_rdesc_template_apply
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_kmemdup
	mov	x21, x0
	cmp	x0, #0
	ccmp	x22, #9, #8, ne
	b.ge	LBB0_2
LBB0_1:
	mov	x0, x21
	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
LBB0_2:
	add	x24, x21, x22, lsl #3
	add	x25, x21, #64
	mov	x22, x21
Lloh3:
	adrp	x23, _uclogic_rdesc_template_apply.head@PAGE
Lloh4:
	add	x23, x23, _uclogic_rdesc_template_apply.head@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, x8, lsl #3
	add	x25, x22, #64
	cmp	x25, x24
	b.hs	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	w2, #8
	bl	_memcmp
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	cmp	x8, x19
	b.hs	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, x8, lsl #2]
	bl	_cpu_to_le32
	mov	x1, x22
	bl	_put_unaligned
	mov	w8, #9
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @uclogic_rdesc_template_apply.head
_uclogic_rdesc_template_apply.head:
	.quad	128                             ; 0x80

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
