	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_cam_get_free_entry         ## -- Begin function rtl_cam_get_free_entry
	.p2align	4, 0x90
_rtl_cam_get_free_entry:                ## @rtl_cam_get_free_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_rtl_priv
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	_TOTAL_CAM_ENTRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$5, %rax
	jb	LBB0_12
## %bb.2:
	movl	(%r15), %r12d
	sarl	$4, %r12d
	movl	$4, %ebx
	movq	_TOTAL_CAM_ENTRY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_ether_addr_equal_unaligned
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jb	LBB0_3
## %bb.7:
	cmpq	$5, %rax
	jb	LBB0_12
## %bb.8:
	movl	$4, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %rbx
	xorl	%edi, %edi
	callq	_BIT
	testq	%rbx, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	sarl	%r12d
	incq	%r13
	movq	_TOTAL_CAM_ENTRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r13
	jb	LBB0_9
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_TOTAL_CAM_ENTRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, %rax
	jmp	LBB0_12
LBB0_10:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_pr_err
	xorl	%edi, %edi
	callq	_BIT
	movl	%r13d, %ecx
	shlq	%cl, %rax
	orl	%eax, (%r15)
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	%r13, %rax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sta_addr is NULL.\n"

	.comm	_TOTAL_CAM_ENTRY,8,3            ## @TOTAL_CAM_ENTRY
L_.str.1:                               ## @.str.1
	.asciz	"-----hwsec_cam_bitmap: 0x%x entry_idx=%d\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_cam_get_free_entry         ; -- Begin function rtl_cam_get_free_entry
	.p2align	2
_rtl_cam_get_free_entry:                ; @rtl_cam_get_free_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	bl	_rtl_priv
	cbz	x19, LBB0_10
; %bb.1:
Lloh0:
	adrp	x22, _TOTAL_CAM_ENTRY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TOTAL_CAM_ENTRY@GOTPAGEOFF]
	ldr	x20, [x22]
	cmp	x20, #5
	b.lo	LBB0_11
; %bb.2:
	mov	x21, x0
	ldr	w8, [x0]
	asr	w23, w8, #4
	mov	w20, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x20, lsl #3]
	mov	x1, x19
	bl	_ether_addr_equal_unaligned
	cbnz	x0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	x8, [x22]
	cmp	x20, x8
	b.lo	LBB0_3
; %bb.5:
	mov	x20, x8
	cmp	x8, #5
	b.lo	LBB0_11
; %bb.6:
	mov	w20, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x24, w23
	mov	w0, #0
	bl	_BIT
	tst	x0, x24
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	asr	w23, w23, #1
	add	x20, x20, #1
	ldr	x8, [x22]
	cmp	x20, x8
	b.lo	LBB0_7
; %bb.9:
	mov	x20, x8
	b	LBB0_11
LBB0_10:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _TOTAL_CAM_ENTRY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TOTAL_CAM_ENTRY@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_12:
	ldr	w8, [x21]
	stp	x8, x20, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	mov	w0, #0
	bl	_BIT
	lsl	x8, x0, x20
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x20, lsl #3]
Lloh9:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_memcpy
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sta_addr is NULL.\n"

	.comm	_TOTAL_CAM_ENTRY,8,3            ; @TOTAL_CAM_ENTRY
l_.str.1:                               ; @.str.1
	.asciz	"-----hwsec_cam_bitmap: 0x%x entry_idx=%d\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
