	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl18xx_set_tx_desc_data_len
_wl18xx_set_tx_desc_data_len:           ## @wl18xx_set_tx_desc_data_len
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdx), %edi
	callq	_cpu_to_le16
	movl	%eax, 20(%rbx)
	movq	_WLCORE_QUIRK_TX_PAD_LAST_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	je	LBB0_1
## %bb.2:
	movq	_WL18XX_TX_CTRL_NOT_PADDED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rcx, 8(%rbx)
	movq	_DEBUG_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	24(%rbx), %r15d
	movl	%eax, %edi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movl	16(%rbx), %edi
	callq	_le16_to_cpu
	movl	(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl1271_debug                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_QUIRK_TX_PAD_LAST_FRAME,4,2 ## @WLCORE_QUIRK_TX_PAD_LAST_FRAME
	.comm	_WL18XX_TX_CTRL_NOT_PADDED,8,3  ## @WL18XX_TX_CTRL_NOT_PADDED
	.comm	_DEBUG_TX,4,2                   ## @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx_fill_hdr: hlid: %d len: %d life: %d mem: %d"

	.no_dead_strip	_wl18xx_set_tx_desc_data_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl18xx_set_tx_desc_data_len
_wl18xx_set_tx_desc_data_len:           ; @wl18xx_set_tx_desc_data_len
	.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, x1
	mov	x20, x0
	ldr	w0, [x2]
	bl	_cpu_to_le16
	str	w0, [x19, #20]
Lloh0:
	adrp	x8, _WLCORE_QUIRK_TX_PAD_LAST_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLCORE_QUIRK_TX_PAD_LAST_FRAME@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _WL18XX_TX_CTRL_NOT_PADDED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WL18XX_TX_CTRL_NOT_PADDED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	tst	w8, w9
	csel	x8, xzr, x10, eq
	str	x8, [x19, #8]
Lloh6:
	adrp	x8, _DEBUG_TX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEBUG_TX@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	w21, [x19, #24]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	w0, [x19, #16]
	bl	_le16_to_cpu
	mov	x4, x0
	ldr	w5, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	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
	b	_wl1271_debug
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_QUIRK_TX_PAD_LAST_FRAME,4,2 ; @WLCORE_QUIRK_TX_PAD_LAST_FRAME
	.comm	_WL18XX_TX_CTRL_NOT_PADDED,8,3  ; @WL18XX_TX_CTRL_NOT_PADDED
	.comm	_DEBUG_TX,4,2                   ; @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx_fill_hdr: hlid: %d len: %d life: %d mem: %d"

	.no_dead_strip	_wl18xx_set_tx_desc_data_len
.subsections_via_symbols
