	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_tx_h_michael_mic_add ## -- Begin function ieee80211_tx_h_michael_mic_add
	.p2align	4, 0x90
_ieee80211_tx_h_michael_mic_add:        ## @ieee80211_tx_h_michael_mic_add
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_TX_CONTINUE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	(%rax), %rax
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.2:
	cmpl	$24, (%r15)
	jl	LBB0_18
## %bb.3:
	movq	8(%r15), %r13
	movl	(%r13), %edi
	callq	_ieee80211_is_data_present
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	movl	(%r13), %edi
	callq	_ieee80211_hdrlen
	movl	(%r15), %edx
	movq	%r13, %rcx
	movq	_TX_DROP@GOTPCREL(%rip), %r13
	subl	%eax, %edx
	jb	LBB0_19
## %bb.5:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	shlq	$2, %rax
	addq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_TX_INTFL_TKIP_MIC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	$0, 8(%r14)
LBB0_7:
	movq	_TKIP_ICV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_13:
	movq	_MICHAEL_MIC_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_skb_tailroom
	movl	$1, %edi
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_skb_headroom
	movq	_TKIP_IV_LEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
LBB0_15:
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	movq	(%rbx), %rax
	movq	_NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	shlq	$2, %rbx
	addq	16(%rax), %rbx
	movq	_MICHAEL_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skb_put
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r8
	callq	_michael_mic
	movq	_IEEE80211_TX_INTFL_TKIP_MIC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	incl	(%r15)
	jmp	LBB0_18
LBB0_8:
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.9:
	movq	_IEEE80211_TX_CTL_DONTFRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_12
## %bb.10:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
LBB0_12:
	movq	(%rbx), %rax
	movq	_IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, 8(%rax)
	jne	LBB0_13
LBB0_18:
	movq	%r12, %r13
LBB0_19:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%edx, %edx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
	.comm	_TX_CONTINUE,4,2                ## @TX_CONTINUE
	.comm	_TX_DROP,4,2                    ## @TX_DROP
	.comm	_IEEE80211_TX_INTFL_TKIP_MIC_FAILURE,4,2 ## @IEEE80211_TX_INTFL_TKIP_MIC_FAILURE
	.comm	_IEEE80211_TX_CTL_DONTFRAG,4,2  ## @IEEE80211_TX_CTL_DONTFRAG
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_MICHAEL_MIC_LEN,4,2            ## @MICHAEL_MIC_LEN
	.comm	_TKIP_ICV_LEN,8,3               ## @TKIP_ICV_LEN
	.comm	_TKIP_IV_LEN,8,3                ## @TKIP_IV_LEN
	.comm	_NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY,8,3 ## @NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_tx_h_michael_mic_add ; -- Begin function ieee80211_tx_h_michael_mic_add
	.p2align	2
_ieee80211_tx_h_michael_mic_add:        ; @ieee80211_tx_h_michael_mic_add
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_IEEE80211_SKB_CB
	ldr	x8, [x21]
	cbz	x8, LBB0_20
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #24
	b.lt	LBB0_20
; %bb.3:
	mov	x19, x0
	ldr	x22, [x20, #8]
	ldr	w0, [x22]
	bl	_ieee80211_is_data_present
	cbz	w0, LBB0_20
; %bb.4:
	ldr	w0, [x22]
	bl	_ieee80211_hdrlen
	ldr	w8, [x20]
	subs	w23, w8, w0
	b.lo	LBB0_12
; %bb.5:
	mov	x24, x0
	ldr	x26, [x20, #8]
	ldr	w8, [x19]
Lloh3:
	adrp	x25, _IEEE80211_TX_INTFL_TKIP_MIC_FAILURE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IEEE80211_TX_INTFL_TKIP_MIC_FAILURE@GOTPAGEOFF]
	ldr	w9, [x25]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.6:
	str	xzr, [x19, #8]
LBB0_7:
Lloh5:
	adrp	x8, _TKIP_ICV_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TKIP_ICV_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
LBB0_8:
Lloh8:
	adrp	x27, _MICHAEL_MIC_LEN@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MICHAEL_MIC_LEN@GOTPAGEOFF]
	ldr	w9, [x27]
	add	w28, w8, w9
	mov	x0, x20
	bl	_skb_tailroom
	cmp	w0, w28
	b.ge	LBB0_10
; %bb.9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_skb_headroom
Lloh10:
	adrp	x8, _TKIP_IV_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TKIP_IV_LEN@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
LBB0_11:
	bl	_WARN_ON
	cbz	x0, LBB0_18
LBB0_12:
Lloh13:
	adrp	x8, _TX_DROP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TX_DROP@GOTPAGEOFF]
	b	LBB0_21
LBB0_13:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.14:
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _IEEE80211_TX_CTL_DONTFRAG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_TX_CTL_DONTFRAG@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.15:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_16:
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
Lloh18:
	adrp	x9, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.17:
	mov	w8, #0
	b	LBB0_8
LBB0_18:
	add	x24, x26, w24, uxtw #2
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
Lloh21:
	adrp	x9, _NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x21, x8, x9, lsl #2
	ldr	w1, [x27]
	mov	x0, x20
	bl	_skb_put
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	mov	x3, x23
	mov	x4, x20
	bl	_michael_mic
	ldr	w8, [x19]
	ldr	w9, [x25]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_20:
Lloh24:
	adrp	x8, _TX_CONTINUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TX_CONTINUE@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
	.comm	_TX_CONTINUE,4,2                ; @TX_CONTINUE
	.comm	_TX_DROP,4,2                    ; @TX_DROP
	.comm	_IEEE80211_TX_INTFL_TKIP_MIC_FAILURE,4,2 ; @IEEE80211_TX_INTFL_TKIP_MIC_FAILURE
	.comm	_IEEE80211_TX_CTL_DONTFRAG,4,2  ; @IEEE80211_TX_CTL_DONTFRAG
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_MICHAEL_MIC_LEN,4,2            ; @MICHAEL_MIC_LEN
	.comm	_TKIP_ICV_LEN,8,3               ; @TKIP_ICV_LEN
	.comm	_TKIP_IV_LEN,8,3                ; @TKIP_IV_LEN
	.comm	_NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY,8,3 ; @NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY
.subsections_via_symbols
