	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_set_hwcrypto_keys
_ipw_set_hwcrypto_keys:                 ## @ipw_set_hwcrypto_keys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	cmpl	$130, %ecx
	je	LBB0_9
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_10
## %bb.3:
	movq	_SEC_ACTIVE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_5
## %bb.4:
	movq	_DCT_FLAG_EXT_SECURITY_CCM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	callq	_ipw_send_tgi_tx_key
	movq	(%rbx), %rax
LBB0_5:
	cmpl	$0, 12(%rax)
	jne	LBB0_10
## %bb.6:
	movq	_DCW_WEP_KEY_SEC_TYPE_CCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ipw_send_wep_keys              ## TAILCALL
LBB0_9:
	movq	_DCW_WEP_KEY_SEC_TYPE_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipw_send_wep_keys
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipw_set_hw_decrypt_unicast
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ipw_set_hw_decrypt_multicast   ## TAILCALL
LBB0_7:
	movq	_SEC_ACTIVE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_10
## %bb.8:
	movq	_DCT_FLAG_EXT_SECURITY_TKIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ipw_send_tgi_tx_key            ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_ACTIVE_KEY,4,2             ## @SEC_ACTIVE_KEY
	.comm	_DCT_FLAG_EXT_SECURITY_CCM,4,2  ## @DCT_FLAG_EXT_SECURITY_CCM
	.comm	_DCW_WEP_KEY_SEC_TYPE_CCM,4,2   ## @DCW_WEP_KEY_SEC_TYPE_CCM
	.comm	_DCT_FLAG_EXT_SECURITY_TKIP,4,2 ## @DCT_FLAG_EXT_SECURITY_TKIP
	.comm	_DCW_WEP_KEY_SEC_TYPE_WEP,4,2   ## @DCW_WEP_KEY_SEC_TYPE_WEP
	.no_dead_strip	_ipw_set_hwcrypto_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_set_hwcrypto_keys
_ipw_set_hwcrypto_keys:                 ; @ipw_set_hwcrypto_keys
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, #130
	b.eq	LBB0_7
; %bb.1:
	cmp	w9, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w9, #128
	b.ne	LBB0_10
; %bb.3:
	ldr	w9, [x8, #4]
Lloh0:
	adrp	x10, _SEC_ACTIVE_KEY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SEC_ACTIVE_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x9, _DCT_FLAG_EXT_SECURITY_CCM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DCT_FLAG_EXT_SECURITY_CCM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_ipw_send_tgi_tx_key
	ldr	x8, [x19]
LBB0_5:
	ldr	w8, [x8, #12]
	cbnz	w8, LBB0_10
; %bb.6:
Lloh6:
	adrp	x8, _DCW_WEP_KEY_SEC_TYPE_CCM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCW_WEP_KEY_SEC_TYPE_CCM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ipw_send_wep_keys
LBB0_7:
Lloh9:
	adrp	x8, _DCW_WEP_KEY_SEC_TYPE_WEP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DCW_WEP_KEY_SEC_TYPE_WEP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipw_send_wep_keys
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipw_set_hw_decrypt_unicast
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ipw_set_hw_decrypt_multicast
LBB0_8:
	ldr	w9, [x8, #4]
Lloh12:
	adrp	x10, _SEC_ACTIVE_KEY@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SEC_ACTIVE_KEY@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.9:
Lloh15:
	adrp	x9, _DCT_FLAG_EXT_SECURITY_TKIP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DCT_FLAG_EXT_SECURITY_TKIP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	ldr	w2, [x8, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ipw_send_tgi_tx_key
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_ACTIVE_KEY,4,2             ; @SEC_ACTIVE_KEY
	.comm	_DCT_FLAG_EXT_SECURITY_CCM,4,2  ; @DCT_FLAG_EXT_SECURITY_CCM
	.comm	_DCW_WEP_KEY_SEC_TYPE_CCM,4,2   ; @DCW_WEP_KEY_SEC_TYPE_CCM
	.comm	_DCT_FLAG_EXT_SECURITY_TKIP,4,2 ; @DCT_FLAG_EXT_SECURITY_TKIP
	.comm	_DCW_WEP_KEY_SEC_TYPE_WEP,4,2   ; @DCW_WEP_KEY_SEC_TYPE_WEP
	.no_dead_strip	_ipw_set_hwcrypto_keys
.subsections_via_symbols
