	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_tx_h_align
_cw1200_tx_h_align:                     ## @cw1200_tx_h_align
	.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
	movq	%rdi, %r14
	movq	16(%rsi), %rdi
	movq	(%rdi), %rax
	xorl	%r13d, %r13d
	movq	%rax, %rbx
	andq	$3, %rbx
	je	LBB0_7
## %bb.1:
	testb	$1, %al
	jne	LBB0_2
## %bb.4:
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_skb_headroom
	cmpq	%rbx, %rax
	jae	LBB0_6
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	16(%r12), %rdi
	callq	_skb_headroom
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_wiphy_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wiphy_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_7
LBB0_6:
	movq	16(%r12), %rdi
	movq	%rbx, %rsi
	callq	_skb_push
	movdqu	(%r12), %xmm0
	movq	%rbx, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, (%r12)
	movq	_WSM_TX_2BYTES_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_cw1200_debug_tx_align
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bug: attempt to transmit a frame with wrong alignment: %zu\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Bug: no space allocated for DMA alignment. headroom: %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WSM_TX_2BYTES_SHIFT,4,2        ## @WSM_TX_2BYTES_SHIFT
	.no_dead_strip	_cw1200_tx_h_align
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_tx_h_align
_cw1200_tx_h_align:                     ; @cw1200_tx_h_align
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x0, [x1, #16]
	ldr	x8, [x0]
	ands	x22, x8, #0x3
	b.eq	LBB0_7
; %bb.1:
	tbnz	w8, #0, LBB0_4
; %bb.2:
	mov	x20, x2
	mov	x21, x1
	bl	_skb_headroom
	cmp	x0, x22
	b.hs	LBB0_6
; %bb.3:
	ldr	x8, [x19]
	ldr	w19, [x8]
	ldr	x0, [x21, #16]
	bl	_skb_headroom
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wiphy_err
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_wiphy_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	ldr	x0, [x21, #16]
	mov	x1, x22
	bl	_skb_push
	ldr	q0, [x21]
	dup.2d	v1, x22
	add.2d	v0, v0, v1
	str	q0, [x21]
Lloh8:
	adrp	x8, _WSM_TX_2BYTES_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WSM_TX_2BYTES_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	bl	_cw1200_debug_tx_align
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bug: attempt to transmit a frame with wrong alignment: %zu\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Bug: no space allocated for DMA alignment. headroom: %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WSM_TX_2BYTES_SHIFT,4,2        ; @WSM_TX_2BYTES_SHIFT
	.no_dead_strip	_cw1200_tx_h_align
.subsections_via_symbols
