	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_tx_desc_map_edma
_wil_tx_desc_map_edma:                  ## @wil_tx_desc_map_edma
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	16(%rbx), %rdi
	leaq	12(%rbx), %rsi
	movl	%r12d, %edx
	callq	_wil_desc_set_addr_edma
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%rbx)
	movq	_WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	(%rbx), %rax
	movl	%r14d, (%rax)
	movq	_MAC_CFG_DESC_TX_2_SNAP_HDR_INSERTION_EN_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	_MAC_CFG_DESC_TX_2_L2_TRANSLATION_TYPE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$3, %edx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	(%rbx), %rax
	movl	%edx, 8(%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS,4,2 ## @WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS
	.comm	_MAC_CFG_DESC_TX_2_SNAP_HDR_INSERTION_EN_POS,4,2 ## @MAC_CFG_DESC_TX_2_SNAP_HDR_INSERTION_EN_POS
	.comm	_MAC_CFG_DESC_TX_2_L2_TRANSLATION_TYPE_POS,4,2 ## @MAC_CFG_DESC_TX_2_L2_TRANSLATION_TYPE_POS
	.no_dead_strip	_wil_tx_desc_map_edma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_tx_desc_map_edma
_wil_tx_desc_map_edma:                  ; @wil_tx_desc_map_edma
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x0, x22, #16
	add	x1, x22, #12
	mov	x2, x21
	bl	_wil_desc_set_addr_edma
	mov	x0, x20
	bl	_cpu_to_le16
	str	w0, [x22, #8]
Lloh0:
	adrp	x8, _WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w19, w8
	ldr	x9, [x22]
	str	w8, [x9]
Lloh3:
	adrp	x8, _MAC_CFG_DESC_TX_2_SNAP_HDR_INSERTION_EN_POS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_CFG_DESC_TX_2_SNAP_HDR_INSERTION_EN_POS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
Lloh6:
	adrp	x8, _MAC_CFG_DESC_TX_2_L2_TRANSLATION_TYPE_POS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_CFG_DESC_TX_2_L2_TRANSLATION_TYPE_POS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #3
	lsl	w8, w9, w8
	orr	w8, w8, w0
	ldr	x9, [x22]
	str	w8, [x9, #8]
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS,4,2 ; @WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS
	.comm	_MAC_CFG_DESC_TX_2_SNAP_HDR_INSERTION_EN_POS,4,2 ; @MAC_CFG_DESC_TX_2_SNAP_HDR_INSERTION_EN_POS
	.comm	_MAC_CFG_DESC_TX_2_L2_TRANSLATION_TYPE_POS,4,2 ; @MAC_CFG_DESC_TX_2_L2_TRANSLATION_TYPE_POS
	.no_dead_strip	_wil_tx_desc_map_edma
.subsections_via_symbols
