	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_prepare_tx_frame
_wl1271_prepare_tx_frame:               ## @wl1271_prepare_tx_frame
	.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
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r13
	movq	_WL12XX_INVALID_LINK_ID@GOTPCREL(%rip), %rax
	cmpq	%r8, (%rax)
	jne	LBB0_6
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_wl1271_error
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wl1271_error
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rcx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%r13, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_wl12xx_is_dummy_packet
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_WLCORE_QUIRK_TKIP_HEADER_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	testl	%ecx, (%r15)
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.7:
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	(%rax), %rcx
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.9:
	movq	_WL1271_EXTRA_SPACE_TKIP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_13
LBB0_10:
	xorl	%ecx, %ecx
	movl	$0, %edx
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_20
LBB0_11:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_12:
	xorl	%ecx, %ecx
LBB0_13:
	movq	(%rax), %rdi
	movq	_WLAN_CIPHER_SUITE_WEP40@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rdi
	sete	%sil
	movq	_WLAN_CIPHER_SUITE_WEP104@GOTPCREL(%rip), %rdx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	cmpq	(%rdx), %rdi
	movq	8(%rax), %rdx
	sete	%al
	xorl	%edi, %edi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.14:
	orb	%al, %sil
	je	LBB0_16
## %bb.15:
	xorl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rdx, (%rax)
	setne	%dil
LBB0_16:
	movq	%rdx, %r12
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_wl1271_set_default_wep_key
	testl	%eax, %eax
	js	LBB0_28
## %bb.18:
	movq	%r12, (%rbx)
LBB0_19:
	movq	_WL1271_CIPHER_SUITE_GEM@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	sete	%dl
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_20:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r14, %r8
	movq	%rbx, %r9
	callq	_wl1271_tx_allocate
	testl	%eax, %eax
	js	LBB0_28
## %bb.21:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r14
	movq	%rbx, %r9
	callq	_wl1271_tx_fill_hdr
	testq	%r12, %r12
	je	LBB0_25
## %bb.22:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.23:
	movq	8(%r12), %rax
	movq	_BSS_TYPE_AP_BSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.24:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_wl1271_tx_ap_update_inconnection_sta
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_wl1271_tx_regulate_link
LBB0_25:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_wlcore_calc_packet_alignment
	movq	%rax, %r14
	movq	8(%r15), %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdi
	movl	8(%r13), %esi
	movq	(%r13), %rdx
	callq	_memcpy
	addq	8(%r15), %rbx
	movq	(%r13), %rax
	addq	%rax, %rbx
	movq	%r14, %rdx
	subq	%rax, %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.26:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skb_pull
	jmp	LBB0_5
LBB0_28:
	movl	%eax, %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"discarding null skb"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WL12XX_INVALID_LINK_ID,8,3     ## @WL12XX_INVALID_LINK_ID
L_.str.1:                               ## @.str.1
	.asciz	"invalid hlid. dropping skb 0x%p"

	.comm	_WLCORE_QUIRK_TKIP_HEADER_SPACE,4,2 ## @WLCORE_QUIRK_TKIP_HEADER_SPACE
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
	.comm	_WL1271_EXTRA_SPACE_TKIP,8,3    ## @WL1271_EXTRA_SPACE_TKIP
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ## @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ## @WLAN_CIPHER_SUITE_WEP104
	.comm	_WL1271_CIPHER_SUITE_GEM,8,3    ## @WL1271_CIPHER_SUITE_GEM
	.comm	_BSS_TYPE_AP_BSS,8,3            ## @BSS_TYPE_AP_BSS
	.no_dead_strip	_wl1271_prepare_tx_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_prepare_tx_frame
_wl1271_prepare_tx_frame:               ; @wl1271_prepare_tx_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x2, LBB0_3
; %bb.1:
	mov	x23, x4
	mov	x19, x2
Lloh0:
	adrp	x8, _WL12XX_INVALID_LINK_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL12XX_INVALID_LINK_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x4
	b.ne	LBB0_6
; %bb.2:
	str	x19, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_wl1271_error
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w27, w8
LBB0_5:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	x20, x3
	mov	x24, x1
	mov	x21, x0
	mov	x0, x19
	bl	_IEEE80211_SKB_CB
	mov	x25, x0
	mov	x0, x21
	mov	x1, x19
	bl	_wl12xx_is_dummy_packet
	mov	x22, x0
	ldr	w9, [x21]
Lloh10:
	adrp	x8, _WLCORE_QUIRK_TKIP_HEADER_SPACE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WLCORE_QUIRK_TKIP_HEADER_SPACE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x8]
	ldr	x8, [x25]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.7:
	cbz	x8, LBB0_18
; %bb.8:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x9, [x8]
Lloh13:
	adrp	x10, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
Lloh16:
	adrp	x11, _WL1271_EXTRA_SPACE_TKIP@GOTPAGE
Lloh17:
	ldr	x11, [x11, _WL1271_EXTRA_SPACE_TKIP@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	cmp	x9, x10
	csel	x26, x11, xzr, eq
	b	LBB0_11
LBB0_9:
	mov	x26, #0
	cbz	x8, LBB0_19
; %bb.10:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
LBB0_11:
	mov	w0, #0
	ldp	x22, x28, [x8]
Lloh19:
	adrp	x8, _WLAN_CIPHER_SUITE_WEP40@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WLAN_CIPHER_SUITE_WEP40@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x22, x8
Lloh22:
	adrp	x8, _WLAN_CIPHER_SUITE_WEP104@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WLAN_CIPHER_SUITE_WEP104@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ccmp	x22, x8, #4, ne
	cset	w8, eq
	cbz	x24, LBB0_14
; %bb.12:
	cbz	w8, LBB0_14
; %bb.13:
	ldr	x8, [x24]
	cmp	x8, x28
	cset	w0, ne
LBB0_14:
	bl	_WARN_ON
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x28
	bl	_wl1271_set_default_wep_key
	tbnz	w0, #31, LBB0_27
; %bb.16:
	str	x28, [x24]
LBB0_17:
Lloh25:
	adrp	x8, _WL1271_CIPHER_SUITE_GEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WL1271_CIPHER_SUITE_GEM@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x22, x8
	cset	w6, eq
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_20
LBB0_18:
	mov	x26, #0
LBB0_19:
	mov	w6, #0
LBB0_20:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	mov	x3, x26
	mov	x4, x20
	mov	x5, x23
	bl	_wl1271_tx_allocate
	tbnz	w0, #31, LBB0_27
; %bb.21:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	mov	x3, x26
	mov	x4, x25
	mov	x5, x23
	bl	_wl1271_tx_fill_hdr
	cbz	x24, LBB0_25
; %bb.22:
	cbnz	w22, LBB0_25
; %bb.23:
	ldr	x8, [x24, #8]
Lloh28:
	adrp	x9, _BSS_TYPE_AP_BSS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BSS_TYPE_AP_BSS@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	bl	_wl1271_tx_ap_update_inconnection_sta
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_wl1271_tx_regulate_link
LBB0_25:
	ldr	x1, [x19]
	mov	x0, x21
	bl	_wlcore_calc_packet_alignment
	mov	x27, x0
	ldr	x8, [x21, #8]
	add	x0, x8, x20
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
	bl	_memcpy
	ldr	x8, [x21, #8]
	ldr	x9, [x19]
	add	x8, x8, x20
	add	x0, x8, x9
	sub	x2, x27, x9
	mov	w1, #0
	bl	_memset
	cbz	w22, LBB0_5
; %bb.26:
	mov	x0, x19
	mov	w1, #4
	bl	_skb_pull
	b	LBB0_5
LBB0_27:
	mov	x27, x0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"discarding null skb"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WL12XX_INVALID_LINK_ID,8,3     ; @WL12XX_INVALID_LINK_ID
l_.str.1:                               ; @.str.1
	.asciz	"invalid hlid. dropping skb 0x%p"

	.comm	_WLCORE_QUIRK_TKIP_HEADER_SPACE,4,2 ; @WLCORE_QUIRK_TKIP_HEADER_SPACE
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
	.comm	_WL1271_EXTRA_SPACE_TKIP,8,3    ; @WL1271_EXTRA_SPACE_TKIP
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ; @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ; @WLAN_CIPHER_SUITE_WEP104
	.comm	_WL1271_CIPHER_SUITE_GEM,8,3    ; @WL1271_CIPHER_SUITE_GEM
	.comm	_BSS_TYPE_AP_BSS,8,3            ; @BSS_TYPE_AP_BSS
	.no_dead_strip	_wl1271_prepare_tx_frame
.subsections_via_symbols
