	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_set_dynamic_key            ## -- Begin function iwl_set_dynamic_key
	.p2align	4, 0x90
_iwl_set_dynamic_key:                   ## @iwl_set_dynamic_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	16(%rsi), %esi
	movq	%rcx, %rdx
	callq	_iwlagn_key_sta_id
	movq	%rax, %rbx
	movq	_IWL_INVALID_STATION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	leaq	4(%r13), %rdi
	callq	_lockdep_assert_held
	movq	%r13, %rdi
	callq	_iwl_get_free_ucode_key_offset
	movq	%rax, (%r15)
	movq	_WEP_INVALID_OFFSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_5:
	incl	(%r12)
	movl	8(%r15), %edx
	leal	-128(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_9
## %bb.6:
	cmpl	$131, %edx
	je	LBB0_9
## %bb.7:
	cmpl	$130, %edx
	jne	LBB0_11
## %bb.8:
	leaq	8(%r12), %rax
	testq	%r14, %r14
	cmovneq	%r14, %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_get_key_rx_seq
	movl	-88(%rbp), %edx
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_ieee80211_get_tkip_rx_p1k
	movl	-88(%rbp), %ecx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	leaq	-80(%rbp), %r8
	jmp	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_10:
	xorl	%r9d, %r9d
	callq	_iwlagn_send_sta_key
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_14
LBB0_13:
	decl	(%r12)
	movq	(%r15), %rdi
	movq	%r13, %rsi
	callq	_clear_bit
LBB0_14:
	movl	8(%r15), %edx
	movl	12(%r15), %r8d
	movl	16(%r15), %ecx
	testq	%r14, %r14
	je	LBB0_15
## %bb.16:
	movq	(%r14), %r9
	jmp	LBB0_17
LBB0_15:
	xorl	%r9d, %r9d
LBB0_17:
	movl	%ebx, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_IWL_DEBUG_WEP
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_IWL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_INVALID_STATION,8,3        ## @IWL_INVALID_STATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WEP_INVALID_OFFSET,8,3         ## @WEP_INVALID_OFFSET
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown cipher %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set dynamic key: cipher=%x len=%d idx=%d sta=%pM ret=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_set_dynamic_key            ; -- Begin function iwl_set_dynamic_key
	.p2align	2
_iwl_set_dynamic_key:                   ; @iwl_set_dynamic_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w1, [x1, #16]
	mov	x2, x3
	bl	_iwlagn_key_sta_id
Lloh3:
	adrp	x8, _IWL_INVALID_STATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_INVALID_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x23, x0
	add	x0, x19, #4
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_iwl_get_free_ucode_key_offset
	str	x0, [x21]
Lloh8:
	adrp	x8, _WEP_INVALID_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WEP_INVALID_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_5:
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	w2, [x21, #8]
	sub	w8, w2, #128
	cmp	w8, #2
	b.lo	LBB0_9
; %bb.6:
	cmp	w2, #131
	b.eq	LBB0_9
; %bb.7:
	cmp	w2, #130
	b.ne	LBB0_18
; %bb.8:
	add	x8, x22, #8
	cmp	x20, #0
	csel	x8, x8, x20, eq
	ldr	x24, [x8]
	mov	x2, sp
	mov	x0, x21
	mov	w1, #0
	bl	_ieee80211_get_key_rx_seq
	ldr	w2, [sp]
	add	x3, sp, #4
	mov	x0, x21
	mov	x1, x24
	bl	_ieee80211_get_tkip_rx_p1k
	ldr	w3, [sp]
	add	x4, sp, #4
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	w3, #0
	mov	x4, #0
LBB0_10:
	mov	w5, #0
	bl	_iwlagn_send_sta_key
	mov	x23, x0
	cbz	w23, LBB0_12
LBB0_11:
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
	ldr	x0, [x21]
	mov	x1, x19
	bl	_clear_bit
LBB0_12:
	ldp	w4, w3, [x21, #12]
	ldr	w2, [x21, #8]
	cbz	x20, LBB0_14
; %bb.13:
	ldr	x5, [x20]
	b	LBB0_15
LBB0_14:
	mov	x5, #0
LBB0_15:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x6, x23
	bl	_IWL_DEBUG_WEP
LBB0_16:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w23, w8
	cbnz	w23, LBB0_11
	b	LBB0_12
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_INVALID_STATION,8,3        ; @IWL_INVALID_STATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WEP_INVALID_OFFSET,8,3         ; @WEP_INVALID_OFFSET
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown cipher %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set dynamic key: cipher=%x len=%d idx=%d sta=%pM ret=%d\n"

.subsections_via_symbols
