	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_setkey_tkip
_ath_setkey_tkip:                       ## @ath_setkey_tkip
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rdx,%rax,4), %r14
	movq	_NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rdx,%rax,4), %r13
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_ATH_CRYPT_CAP_MIC_COMBINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rbx), %edi
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_1:
	testl	%r9d, %r9d
	movl	(%rbx), %edi
	cmoveq	%r13, %r14
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_ath_hw_set_keycache_entry
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	addq	$32, %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
LBB0_6:
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_hw_set_keycache_entry      ## TAILCALL
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_ath_err
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY,4,2 ## @NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY
	.comm	_NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY,4,2 ## @NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY
	.comm	_ATH_CRYPT_CAP_MIC_COMBINED,4,2 ## @ATH_CRYPT_CAP_MIC_COMBINED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting TX MIC Key Failed\n"

	.no_dead_strip	_ath_setkey_tkip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_setkey_tkip
_ath_setkey_tkip:                       ; @ath_setkey_tkip
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x24, x2, x8, lsl #2
Lloh3:
	adrp	x8, _NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x23, x2, x8, lsl #2
	cbz	x4, LBB0_3
; %bb.1:
	mov	x22, x4
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _ATH_CRYPT_CAP_MIC_COMBINED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH_CRYPT_CAP_MIC_COMBINED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w0, [x19]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #4]
	mov	x1, x24
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	mov	x1, x21
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19]
	cmp	w5, #0
	csel	x22, x23, x24, eq
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #4]
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, #0
	b	LBB0_7
LBB0_4:
	mov	x1, x24
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, #0
	bl	_ath_hw_set_keycache_entry
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w0, [x19]
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	add	x1, x21, #32
	mov	x0, x20
LBB0_6:
	mov	x2, x19
	mov	x3, x22
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ath_hw_set_keycache_entry
LBB0_8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_err
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY,4,2 ; @NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY
	.comm	_NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY,4,2 ; @NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY
	.comm	_ATH_CRYPT_CAP_MIC_COMBINED,4,2 ; @ATH_CRYPT_CAP_MIC_COMBINED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting TX MIC Key Failed\n"

	.no_dead_strip	_ath_setkey_tkip
.subsections_via_symbols
