	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_sec_write_cam              ## -- Begin function rtw_sec_write_cam
	.p2align	4, 0x90
_rtw_sec_write_cam:                     ## @rtw_sec_write_cam
	.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
	movq	%r9, %rbx
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rsi), %r15
	movl	(%rsi), %esi
	movq	%r9, %rdi
	callq	_set_bit
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	shlq	$5, %rbx
	movl	$1, (%r15,%rbx)
	movq	_IEEE80211_KEY_FLAG_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r14), %eax
	sete	%cl
	movl	%ecx, 4(%r15,%rbx)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, 8(%r15,%rbx)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, 24(%r15,%rbx)
	movq	16(%r15,%rbx), %rdi
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	(%rdx), %esi
	callq	_ether_addr_copy
	jmp	LBB0_3
LBB0_2:
	callq	_eth_broadcast_addr
LBB0_3:
	leaq	(%r15,%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rbx), %rax
	addq	$4, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_RTW_SEC_CMD_WRITE_ENABLE@GOTPCREL(%rip), %rax
	movq	_RTW_SEC_CMD_POLLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_RTW_SEC_CAM_ENTRY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, -72(%rbp)                  ## 8-byte Folded Spill
	orl	(%rax), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	shll	$2, %eax
	andl	$28, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$5, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	52(%rax,%r14), %ecx
	movl	56(%rax,%r14), %esi
	shll	$8, %ecx
	orl	48(%rax,%r14), %ecx
	shll	$16, %esi
	movl	60(%rax,%r14), %edx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	shll	$24, %edx
	orl	%esi, %edx
	orl	%ecx, %edx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %ebx
	orl	%r15d, %ebx
	movq	_RTW_SEC_WRITE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_rtw_write32
	movq	_RTW_SEC_CMD_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_rtw_write32
	addq	$-16, %r14
	decl	%r12d
	cmpq	$-96, %r14
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %r12d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	andl	$3, %eax
	orl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ecx
	shll	$6, %ecx
	orl	%eax, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	shll	$15, %eax
	orl	%ecx, %eax
	movq	12(%rdx), %rcx
	movl	(%rcx), %esi
	movl	4(%rcx), %edx
	shll	$16, %esi
	orl	%eax, %esi
	shll	$24, %edx
	orl	%esi, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	12(%rax), %rax
	movl	12(%rax), %ecx
	movl	16(%rax), %esi
	shll	$8, %ecx
	orl	8(%rax), %ecx
	shll	$16, %esi
	movl	20(%rax), %edx
	jmp	LBB0_9
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ## @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_RTW_SEC_CMD_WRITE_ENABLE,4,2   ## @RTW_SEC_CMD_WRITE_ENABLE
	.comm	_RTW_SEC_CMD_POLLING,4,2        ## @RTW_SEC_CMD_POLLING
	.comm	_RTW_SEC_CAM_ENTRY_SHIFT,8,3    ## @RTW_SEC_CAM_ENTRY_SHIFT
	.comm	_RTW_SEC_WRITE_REG,4,2          ## @RTW_SEC_WRITE_REG
	.comm	_RTW_SEC_CMD_REG,4,2            ## @RTW_SEC_CMD_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_sec_write_cam              ; -- Begin function rtw_sec_write_cam
	.p2align	2
_rtw_sec_write_cam:                     ; @rtw_sec_write_cam
	.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
	mov	x22, x5
	mov	x21, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x0
	ldr	x24, [x1, #8]
	ldr	w1, [x1]
	mov	x0, x5
	bl	_set_bit
	add	x26, x24, x22, lsl #5
	mov	w8, #1
	str	w8, [x26]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, eq
	mov	x9, x26
	str	w8, [x9, #4]!
	stp	x9, x26, [sp, #16]              ; 16-byte Folded Spill
	str	x21, [x26, #8]
	str	x19, [x26, #24]
	ldr	x0, [x26, #16]!
	cbz	x23, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	bl	_ether_addr_copy
	b	LBB0_3
LBB0_2:
	bl	_eth_broadcast_addr
LBB0_3:
	mov	x23, #0
Lloh3:
	adrp	x8, _RTW_SEC_CMD_WRITE_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTW_SEC_CMD_WRITE_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RTW_SEC_CMD_POLLING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RTW_SEC_CMD_POLLING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w27, w9, w8
Lloh9:
	adrp	x8, _RTW_SEC_CAM_ENTRY_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTW_SEC_CAM_ENTRY_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	lsl	x22, x22, x8
	ubfiz	w8, w21, #2, #3
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w8, #5
Lloh12:
	adrp	x25, _RTW_SEC_WRITE_REG@GOTPAGE
Lloh13:
	ldr	x25, [x25, _RTW_SEC_WRITE_REG@GOTPAGEOFF]
Lloh14:
	adrp	x28, _RTW_SEC_CMD_REG@GOTPAGE
Lloh15:
	ldr	x28, [x28, _RTW_SEC_CMD_REG@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x19, #8]
	add	x9, x9, x23
	ldp	w10, w11, [x9, #48]
	orr	w10, w10, w11, lsl #8
	ldp	w11, w9, [x9, #56]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	orr	w10, w10, w11, lsl #16
	orr	w2, w10, w9, lsl #24
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w22, w8
	orr	w21, w27, w8
	ldr	w1, [x25]
	mov	x0, x20
	bl	_rtw_write32
	ldr	w1, [x28]
	mov	x0, x20
	mov	x2, x21
	bl	_rtw_write32
	sub	x23, x23, #16
	mov	x8, x24
	cmn	x23, #96
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	subs	w24, w8, #1
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x19, #4]
	and	w9, w9, #0x3
	ldp	x10, x11, [sp, #16]             ; 16-byte Folded Reload
	ldr	w10, [x10]
	ldr	w11, [x11]
	ldr	x12, [x26]
	ldp	w13, w12, [x12]
	ldr	w14, [sp, #12]                  ; 4-byte Folded Reload
	orr	w9, w14, w9
	bfi	w9, w10, #6, #26
	orr	w9, w9, w11, lsl #15
	orr	w9, w9, w13, lsl #16
	orr	w2, w9, w12, lsl #24
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x26]
	ldp	w10, w11, [x9, #8]
	orr	w10, w10, w11, lsl #8
	ldp	w11, w9, [x9, #16]
	b	LBB0_5
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ; @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_RTW_SEC_CMD_WRITE_ENABLE,4,2   ; @RTW_SEC_CMD_WRITE_ENABLE
	.comm	_RTW_SEC_CMD_POLLING,4,2        ; @RTW_SEC_CMD_POLLING
	.comm	_RTW_SEC_CAM_ENTRY_SHIFT,8,3    ; @RTW_SEC_CAM_ENTRY_SHIFT
	.comm	_RTW_SEC_WRITE_REG,4,2          ; @RTW_SEC_WRITE_REG
	.comm	_RTW_SEC_CMD_REG,4,2            ; @RTW_SEC_CMD_REG
.subsections_via_symbols
