	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_del_key
_brcmf_cfg80211_del_key:                ## @brcmf_cfg80211_del_key
	.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	%rdx, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_CONN@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	(%r14), %rdi
	callq	_check_vif_up
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_BRCMF_MAX_DEFAULT_KEYS@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jbe	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	movq	(%rax), %rbx
	leaq	(%r15,%r15,2), %r12
	movq	(%rbx,%r12,8), %rax
	movq	_CRYPTO_ALGO_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	leaq	(%rbx,%r12,8), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r15, 16(%rbx,%r12,8)
	movq	_BRCMF_PRIMARY_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx,%r12,8)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_send_key_to_dongle
	movl	%eax, %ebx
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_CONN,4,2                       ## @CONN
L_.str.1:                               ## @.str.1
	.asciz	"key index (%d)\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_BRCMF_MAX_DEFAULT_KEYS,8,3     ## @BRCMF_MAX_DEFAULT_KEYS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRYPTO_ALGO_OFF,8,3            ## @CRYPTO_ALGO_OFF
L_.str.2:                               ## @.str.2
	.asciz	"Ignore clearing of (never configured) key\n"

	.comm	_BRCMF_PRIMARY_KEY,4,2          ## @BRCMF_PRIMARY_KEY
L_.str.3:                               ## @.str.3
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_cfg80211_del_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_cfg80211_del_key
_brcmf_cfg80211_del_key:                ; @brcmf_cfg80211_del_key
	.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, x2
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x22, _TRACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TRACE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
Lloh4:
	adrp	x23, _CONN@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CONN@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x19, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	ldr	x0, [x20]
	bl	_check_vif_up
	cbz	w0, LBB0_5
; %bb.1:
Lloh8:
	adrp	x8, _BRCMF_MAX_DEFAULT_KEYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRCMF_MAX_DEFAULT_KEYS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x24, [x8]
	mov	w8, #24
	madd	x21, x19, x8, x24
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _CRYPTO_ALGO_OFF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CRYPTO_ALGO_OFF@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x23]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
LBB0_4:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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_8:
	mov	w23, #24
	mov	x0, x21
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	madd	x8, x19, x23, x24
	str	x19, [x8, #16]
Lloh20:
	adrp	x9, _BRCMF_PRIMARY_KEY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BRCMF_PRIMARY_KEY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	str	w9, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_send_key_to_dongle
	mov	x19, x0
	ldr	w0, [x22]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
	mov	x0, x19
	b	LBB0_7
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_CONN,4,2                       ; @CONN
l_.str.1:                               ; @.str.1
	.asciz	"key index (%d)\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_BRCMF_MAX_DEFAULT_KEYS,8,3     ; @BRCMF_MAX_DEFAULT_KEYS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRYPTO_ALGO_OFF,8,3            ; @CRYPTO_ALGO_OFF
l_.str.2:                               ; @.str.2
	.asciz	"Ignore clearing of (never configured) key\n"

	.comm	_BRCMF_PRIMARY_KEY,4,2          ; @BRCMF_PRIMARY_KEY
l_.str.3:                               ; @.str.3
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_cfg80211_del_key
.subsections_via_symbols
