	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_mac_set_rekey_data
_iwlagn_mac_set_rekey_data:             ## @iwlagn_mac_set_rekey_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_IWL_MAC80211_GET_DVM
	movq	%rax, %rbx
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_MAC80211
	movq	%rbx, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	24(%rbx), %rax
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r12, (%rax,%rcx,8)
	jne	LBB0_3
## %bb.2:
	movl	16(%rbx), %edi
	movl	8(%r14), %esi
	movq	_NL80211_KEK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	12(%rbx), %edi
	movl	4(%r14), %esi
	movq	_NL80211_KCK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_be64_to_cpup
	movl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, 8(%rbx)
	movl	$1, (%rbx)
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_DEBUG_MAC80211             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_iwlwifi_mod_params,8,3         ## @iwlwifi_mod_params
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter\n"

	.comm	_IWL_RXON_CTX_BSS,8,3           ## @IWL_RXON_CTX_BSS
	.comm	_NL80211_KEK_LEN,4,2            ## @NL80211_KEK_LEN
	.comm	_NL80211_KCK_LEN,4,2            ## @NL80211_KCK_LEN
L_.str.1:                               ## @.str.1
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_mac_set_rekey_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_mac_set_rekey_data
_iwlagn_mac_set_rekey_data:             ; @iwlagn_mac_set_rekey_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x22, x1
	bl	_IWL_MAC80211_GET_DVM
Lloh0:
	adrp	x8, _iwlwifi_mod_params@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iwlwifi_mod_params@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_MAC80211
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x9, _IWL_RXON_CTX_BSS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IWL_RXON_CTX_BSS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, x22
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	ldr	w1, [x20, #8]
Lloh8:
	adrp	x8, _NL80211_KEK_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NL80211_KEK_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [x19, #12]
	ldr	w1, [x20, #4]
Lloh11:
	adrp	x8, _NL80211_KCK_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NL80211_KCK_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x20
	bl	_be64_to_cpup
	bl	_cpu_to_le64
	str	w0, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	mov	x0, x21
	bl	_mutex_unlock
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_IWL_DEBUG_MAC80211
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_iwlwifi_mod_params,8,3         ; @iwlwifi_mod_params
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter\n"

	.comm	_IWL_RXON_CTX_BSS,8,3           ; @IWL_RXON_CTX_BSS
	.comm	_NL80211_KEK_LEN,4,2            ; @NL80211_KEK_LEN
	.comm	_NL80211_KCK_LEN,4,2            ; @NL80211_KCK_LEN
l_.str.1:                               ; @.str.1
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_mac_set_rekey_data
.subsections_via_symbols
