	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_cle_kn_to_hw
_xgene_cle_kn_to_hw:                    ## @xgene_cle_kn_to_hw
	.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, %rbx
	movq	%rdi, %r15
	movq	_CLE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_SET_VAL
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.1:
	movl	$1, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	shlq	$16, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orq	%rax, (%rcx,%r12,8)
	incq	%r12
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	movq	_CLE_KN_PRIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14,%rbx,8), %esi
	callq	_SET_VAL
	movq	%rax, %r13
	movq	_CLE_KN_RPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14,%rbx,8), %esi
	callq	_SET_VAL
	orq	%r13, %rax
	testb	$1, %bl
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12,8)
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLE_TYPE,4,2                   ## @CLE_TYPE
	.comm	_CLE_KN_PRIO,4,2                ## @CLE_KN_PRIO
	.comm	_CLE_KN_RPTR,4,2                ## @CLE_KN_RPTR
	.no_dead_strip	_xgene_cle_kn_to_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_cle_kn_to_hw
_xgene_cle_kn_to_hw:                    ; @xgene_cle_kn_to_hw
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CLE_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLE_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_SET_VAL
	str	x0, [x19]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w26, #1
Lloh3:
	adrp	x24, _CLE_KN_PRIO@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CLE_KN_PRIO@GOTPAGEOFF]
Lloh5:
	adrp	x25, _CLE_KN_RPTR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _CLE_KN_RPTR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	x9, x26, #3
	add	x26, x26, #1
	ldr	x10, [x19, x9]
	orr	x8, x10, x8, lsl #16
	str	x8, [x19, x9]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	x8, [x20]
	add	x22, x22, #8
	cmp	x23, x8
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x24]
	add	x27, x8, x22
	ldr	w1, [x27, #4]
	bl	_SET_VAL
	mov	x21, x0
	ldr	w0, [x25]
	ldr	w1, [x27]
	bl	_SET_VAL
	orr	x8, x0, x21
	tbnz	w23, #0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x19, x26, lsl #3]
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CLE_TYPE,4,2                   ; @CLE_TYPE
	.comm	_CLE_KN_PRIO,4,2                ; @CLE_KN_PRIO
	.comm	_CLE_KN_RPTR,4,2                ; @CLE_KN_RPTR
	.no_dead_strip	_xgene_cle_kn_to_hw
.subsections_via_symbols
