	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_wep_add_iv
_ieee80211_wep_add_iv:                  ## @ieee80211_wep_add_iv
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r14
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r13
	movq	_IEEE80211_FCTL_PROTECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_skb_tailroom
	movq	_WEP_ICV_LEN@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_skb_headroom
	movq	_WEP_IV_LEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
LBB0_2:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	(%r14), %edi
	callq	_ieee80211_hdrlen
	movl	%eax, %r14d
	movq	_WEP_IV_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_skb_push
	movq	%rax, %r15
	movq	(%r12), %rax
	leaq	(%r15,%rax,4), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_memmove
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	leaq	(%r15,%rax,4), %rbx
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_skb_network_offset
	addq	(%r12), %rax
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_skb_set_network_header
	movl	%r14d, %eax
	leaq	(%r15,%rax,4), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_ieee80211_wep_get_iv
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FCTL_PROTECTED,4,2   ## @IEEE80211_FCTL_PROTECTED
	.comm	_WEP_ICV_LEN,8,3                ## @WEP_ICV_LEN
	.comm	_WEP_IV_LEN,8,3                 ## @WEP_IV_LEN
	.comm	_IEEE80211_KEY_FLAG_PUT_IV_SPACE,4,2 ## @IEEE80211_KEY_FLAG_PUT_IV_SPACE
	.no_dead_strip	_ieee80211_wep_add_iv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_wep_add_iv
_ieee80211_wep_add_iv:                  ; @ieee80211_wep_add_iv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x24, [x1]
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	mov	x23, x0
Lloh0:
	adrp	x8, _IEEE80211_FCTL_PROTECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_FCTL_PROTECTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	w8, [x24]
	mov	x0, x22
	bl	_skb_tailroom
Lloh3:
	adrp	x8, _WEP_ICV_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WEP_ICV_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
	mov	x22, #0
	b	LBB0_8
LBB0_3:
	mov	x0, x22
	bl	_skb_headroom
Lloh6:
	adrp	x8, _WEP_IV_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WEP_IV_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	w0, [x24]
	bl	_ieee80211_hdrlen
	mov	x24, x0
Lloh9:
	adrp	x26, _WEP_IV_LEN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _WEP_IV_LEN@GOTPAGEOFF]
	ldr	x1, [x26]
	mov	x0, x22
	bl	_skb_push
	mov	x25, x0
	ldr	x8, [x26]
	add	x1, x0, x8, lsl #2
	mov	x2, x24
	bl	_memmove
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	add	x22, x25, w24, uxtw #2
	b	LBB0_8
LBB0_7:
	mov	x0, x22
	bl	_skb_network_offset
	ldr	x8, [x26]
	add	x1, x8, x0
	mov	x0, x22
	bl	_skb_set_network_header
	add	x22, x25, w24, uxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_ieee80211_wep_get_iv
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FCTL_PROTECTED,4,2   ; @IEEE80211_FCTL_PROTECTED
	.comm	_WEP_ICV_LEN,8,3                ; @WEP_ICV_LEN
	.comm	_WEP_IV_LEN,8,3                 ; @WEP_IV_LEN
	.comm	_IEEE80211_KEY_FLAG_PUT_IV_SPACE,4,2 ; @IEEE80211_KEY_FLAG_PUT_IV_SPACE
	.no_dead_strip	_ieee80211_wep_add_iv
.subsections_via_symbols
