	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_add_dma_header
_mwl8k_add_dma_header:                  ## @mwl8k_add_dma_header
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %r12
	movl	(%r12), %edi
	callq	_ieee80211_hdrlen
	movl	%eax, %r13d
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.1:
	movslq	%r13d, %rax
	movq	_REDUCED_TX_HEADROOM@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	leaq	4(%rsi), %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_4
## %bb.2:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_pskb_expand_head
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wiphy_err                      ## TAILCALL
LBB0_3:
	movq	_REDUCED_TX_HEADROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, (%r15)
LBB0_4:
	addl	$8, %ebx
	subl	%r13d, %ebx
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_skb_push
LBB0_6:
	movl	(%r12), %edi
	callq	_ieee80211_is_data_qos
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_IEEE80211_QOS_CTL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	subl	%ecx, %r13d
	movq	8(%r15), %r14
	leaq	4(%r14), %rbx
	cmpq	%r12, %rbx
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memmove
LBB0_10:
	cmpl	$4, %r13d
	je	LBB0_12
## %bb.11:
	movslq	%r13d, %rax
	addq	%rax, %rbx
	movl	$4, %edx
	subl	%r13d, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_12:
	movl	4(%r15), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rax), %edi
	addl	$-8, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDUCED_TX_HEADROOM,4,2        ## @REDUCED_TX_HEADROOM
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to reallocate TX buffer\n"

	.comm	_IEEE80211_QOS_CTL_LEN,8,3      ## @IEEE80211_QOS_CTL_LEN
	.no_dead_strip	_mwl8k_add_dma_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_add_dma_header
_mwl8k_add_dma_header:                  ; @mwl8k_add_dma_header
	.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	x23, x2
	mov	x20, x1
	mov	x24, x0
	ldr	x21, [x1, #8]
	ldr	w0, [x21]
	bl	_ieee80211_hdrlen
	mov	x22, x0
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x25, _REDUCED_TX_HEADROOM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _REDUCED_TX_HEADROOM@GOTPAGEOFF]
	ldrsw	x1, [x25]
	add	x8, x1, #4
	cmp	x8, w22, sxtw
	b.ls	LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	bl	_pskb_expand_head
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x24]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_wiphy_err
LBB0_4:
	ldr	w8, [x25]
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
LBB0_5:
	add	w8, w23, #8
	subs	w1, w8, w22
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_skb_push
LBB0_7:
	ldr	w0, [x21]
	bl	_ieee80211_is_data_qos
Lloh7:
	adrp	x8, _IEEE80211_QOS_CTL_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE80211_QOS_CTL_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	sub	w22, w22, w8
	ldr	x24, [x20, #8]
	add	x23, x24, #4
	cmp	x23, x21
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_memmove
LBB0_9:
	cmp	w22, #4
	b.eq	LBB0_11
; %bb.10:
	add	x0, x23, w22, sxtw
	mov	w8, #4
	sub	w2, w8, w22
	mov	w1, #0
	bl	_memset
LBB0_11:
	ldr	w8, [x20, #4]
	add	w8, w19, w8
	sub	w0, w8, #8
	bl	_cpu_to_le16
	str	w0, [x24]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_REDUCED_TX_HEADROOM,4,2        ; @REDUCED_TX_HEADROOM
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to reallocate TX buffer\n"

	.comm	_IEEE80211_QOS_CTL_LEN,8,3      ; @IEEE80211_QOS_CTL_LEN
	.no_dead_strip	_mwl8k_add_dma_header
.subsections_via_symbols
