	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_cam_program_entry
_rtl_cam_program_entry:                 ## @rtl_cam_program_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	callq	_rtl_priv
	movq	%rax, %r15
	movq	_COMP_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r8
	movl	$16, %r9d
	callq	_RT_PRINT_DATA
	movq	_CAM_CONTENT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	leal	-12(,%rax,4), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	imull	-52(%rbp), %eax                 ## 4-byte Folded Reload
	leal	(%r12,%rax), %r13d
	decl	%r13d
	movl	$31, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$16, %edi
	callq	_BIT
	movl	%eax, %r14d
	orl	%ebx, %r14d
	orl	%r13d, %r14d
	cmpl	$2, %r12d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %r12d
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	8(%rax), %eax
	shll	$16, %r13d
	shll	$24, %eax
	orl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	orl	%eax, %r13d
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_WCAMI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_rtl_write_dword
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_RWCAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rtl_write_dword
	movq	_COMP_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %rbx
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_WCAMI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r8d
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rcx
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%rbx, %r13
	movl	(%rbx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_RWCAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r8d
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rcx
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpq	$2, %r12
	jae	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	40(%rdx), %eax
	shll	$24, %eax
	movl	24(%rdx), %ebx
	movl	32(%rdx), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	shll	$8, %ebx
	orl	%ecx, %ebx
	orl	16(%rdx), %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	24(%rsi,%rax,8), %ecx
	shll	$24, %ecx
	movl	8(%rsi,%rax,8), %ebx
	movl	16(%rsi,%rax,8), %edx
	shll	$16, %edx
	orl	%ecx, %edx
	shll	$8, %ebx
	orl	%edx, %ebx
	orl	(%rsi,%rax,8), %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_WCAMI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_dword
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_RWCAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rtl_write_dword
	movq	_COMP_SEC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rcx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rcx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpq	$2, %r12
	jb	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CAM_CONTENT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-4, -48(%rbp)                  ## 4-byte Folded Spill
	decq	%r12
	jmp	LBB0_2
LBB0_10:
	movq	_COMP_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.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	"Key content :"

	.comm	_CAM_CONTENT_COUNT,4,2          ## @CAM_CONTENT_COUNT
	.comm	_WCAMI,8,3                      ## @WCAMI
	.comm	_RWCAM,8,3                      ## @RWCAM
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.1:                               ## @.str.1
	.asciz	"WRITE %x: %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"The Key ID is %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"WRITE A4: %x\n"

L_.str.4:                               ## @.str.4
	.asciz	"WRITE A0: %x\n"

L_.str.5:                               ## @.str.5
	.asciz	"after set key, usconfig:%x\n"

	.no_dead_strip	_rtl_cam_program_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_cam_program_entry
_rtl_cam_program_entry:                 ; @rtl_cam_program_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w4, [sp, #24]                   ; 4-byte Folded Spill
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	bl	_rtl_priv
	mov	x23, x0
Lloh0:
	adrp	x24, _COMP_SEC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _COMP_SEC@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	mov	x4, x19
	mov	w5, #16
	bl	_RT_PRINT_DATA
Lloh7:
	adrp	x8, _CAM_CONTENT_COUNT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAM_CONTENT_COUNT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x25, _DBG_LOUD@GOTPAGE
Lloh11:
	ldr	x25, [x25, _DBG_LOUD@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	lsl	w9, w8, #2
Lloh12:
	adrp	x20, _RWCAM@GOTPAGE
Lloh13:
	ldr	x20, [x20, _RWCAM@GOTPAGEOFF]
Lloh14:
	adrp	x26, l_.str.3@PAGE
Lloh15:
	add	x26, x26, l_.str.3@PAGEOFF
	sub	w9, w9, #12
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	mov	x19, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	madd	w8, w8, w22, w19
	sub	w27, w8, #1
	mov	w0, #31
	bl	_BIT
	orr	w27, w27, w0
	mov	w0, #16
	bl	_BIT
	orr	w28, w27, w0
	cmp	w19, #2
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w19, #1
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x21, #8]
	ldr	w10, [sp, #24]                  ; 4-byte Folded Reload
	orr	w8, w10, w8, lsl #16
	orr	w27, w8, w9, lsl #24
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _WCAMI@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WCAMI@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x23
	mov	x2, x27
	bl	_rtl_write_dword
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x23
	mov	x2, x28
	bl	_rtl_write_dword
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _WCAMI@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WCAMI@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w4, [x8, x9, lsl #2]
	str	x27, [sp]
	mov	x0, x23
Lloh22:
	adrp	x27, l_.str.1@PAGE
Lloh23:
	add	x27, x27, l_.str.1@PAGEOFF
	mov	x3, x27
	bl	_RT_TRACE
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x23
Lloh24:
	adrp	x3, l_.str.2@PAGE
Lloh25:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x4, x22
	bl	_RT_TRACE
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w4, [x8, x9, lsl #2]
	str	x28, [sp]
	mov	x0, x23
	mov	x3, x27
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21, #40]
	ldr	w9, [x21, #32]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldr	w9, [x21, #24]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x21, #16]
	orr	w27, w8, w9
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	x8, x8, w9, sxtw #3
	ldr	w9, [x8, #24]
	ldr	w10, [x8, #16]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldr	w10, [x8, #8]
	orr	w9, w9, w10, lsl #8
	ldr	x8, [x8]
	orr	w27, w9, w8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _WCAMI@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WCAMI@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x23
	mov	x2, x27
	bl	_rtl_write_dword
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x23
	mov	x2, x28
	bl	_rtl_write_dword
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x23
	mov	x3, x26
	mov	x4, x27
	bl	_RT_TRACE
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x23
Lloh29:
	adrp	x3, l_.str.4@PAGE
Lloh30:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x4, x28
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_RT_TRACE
	cmp	x19, #2
	b.lo	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh31:
	adrp	x8, _CAM_CONTENT_COUNT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CAM_CONTENT_COUNT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	sub	w9, w9, #4
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	sub	x19, x19, #1
	b	LBB0_2
LBB0_10:
	ldr	w1, [x24]
Lloh34:
	adrp	x3, l_.str.5@PAGE
Lloh35:
	add	x3, x3, l_.str.5@PAGEOFF
	ldr	w2, [x25]
	mov	x0, x23
	ldr	w4, [sp, #24]                   ; 4-byte Folded Reload
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_RT_TRACE
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.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	"Key content :"

	.comm	_CAM_CONTENT_COUNT,4,2          ; @CAM_CONTENT_COUNT
	.comm	_WCAMI,8,3                      ; @WCAMI
	.comm	_RWCAM,8,3                      ; @RWCAM
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.1:                               ; @.str.1
	.asciz	"WRITE %x: %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"The Key ID is %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"WRITE A4: %x\n"

l_.str.4:                               ; @.str.4
	.asciz	"WRITE A0: %x\n"

l_.str.5:                               ; @.str.5
	.asciz	"after set key, usconfig:%x\n"

	.no_dead_strip	_rtl_cam_program_entry
.subsections_via_symbols
