	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_cam_add_one_entry          ## -- Begin function rtl_cam_add_one_entry
	.p2align	4, 0x90
_rtl_cam_add_one_entry:                 ## @rtl_cam_add_one_entry
	.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
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_rtl_priv
	movq	_COMP_SEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	pushq	%r14
	pushq	%r13
	pushq	%r15
	callq	_RT_TRACE
	addq	$32, %rsp
	movq	_TOTAL_CAM_ENTRY@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rcx
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movq	_COMP_ERR@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	16(%rbp), %rcx
	shll	$2, %r15d
	xorl	%eax, %eax
	cmpl	$1, %r13d
	cmovel	%eax, %ebx
	movq	_CFG_VALID@GOTPCREL(%rip), %rax
	orl	%r15d, %ebx
	orl	(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%ebx, %r8d
	callq	_rtl_cam_program_entry
	movl	$1, %ebx
	leaq	L_.str.2(%rip), %rcx
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movq	_COMP_SEC@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rdx), %esi
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_SEC,4,2                   ## @COMP_SEC
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EntryNo:%x, ulKeyId=%x, ulEncAlg=%x, ulUseDK=%x MacAddr %pM\n"

	.comm	_TOTAL_CAM_ENTRY,4,2            ## @TOTAL_CAM_ENTRY
	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
	.comm	_DBG_WARNING,4,2                ## @DBG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"ulKeyId exceed!\n"

	.comm	_CFG_VALID,4,2                  ## @CFG_VALID
L_.str.2:                               ## @.str.2
	.asciz	"end\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_cam_add_one_entry          ; -- Begin function rtl_cam_add_one_entry
	.p2align	2
_rtl_cam_add_one_entry:                 ; @rtl_cam_add_one_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x6
	mov	x25, x5
	mov	x23, x4
	mov	x21, x3
	mov	x26, x2
	mov	x22, x1
	mov	x24, x0
	bl	_rtl_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _COMP_SEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_SEC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	stp	x25, x22, [sp, #24]
	stp	x26, x23, [sp, #8]
	str	x21, [sp]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
Lloh8:
	adrp	x8, _TOTAL_CAM_ENTRY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TOTAL_CAM_ENTRY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
Lloh11:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh13:
	adrp	x9, _COMP_ERR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _COMP_ERR@GOTPAGEOFF]
Lloh15:
	adrp	x3, l_.str.1@PAGE
Lloh16:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _CFG_VALID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CFG_VALID@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w25, #1
	csel	w9, wzr, w26, eq
	orr	w9, w9, w23, lsl #2
	orr	w4, w8, w9
	mov	x0, x24
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_rtl_cam_program_entry
	mov	w20, #1
Lloh20:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh22:
	adrp	x9, _COMP_SEC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _COMP_SEC@GOTPAGEOFF]
Lloh24:
	adrp	x3, l_.str.2@PAGE
Lloh25:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_3:
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_SEC,4,2                   ; @COMP_SEC
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EntryNo:%x, ulKeyId=%x, ulEncAlg=%x, ulUseDK=%x MacAddr %pM\n"

	.comm	_TOTAL_CAM_ENTRY,4,2            ; @TOTAL_CAM_ENTRY
	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
	.comm	_DBG_WARNING,4,2                ; @DBG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"ulKeyId exceed!\n"

	.comm	_CFG_VALID,4,2                  ; @CFG_VALID
l_.str.2:                               ; @.str.2
	.asciz	"end\n"

.subsections_via_symbols
