	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_gen2_build_tx_amsdu
_iwl_pcie_gen2_build_tx_amsdu:          ## @iwl_pcie_gen2_build_tx_amsdu
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	8(%rsi), %esi
	movq	%rbx, %rdi
	callq	_iwl_pcie_get_cmd_index
	movl	%eax, %r15d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_iwl_pcie_get_tfd
	movq	%rax, %r14
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	callq	_iwl_pcie_get_first_tb_dma
	movq	_IWL_FIRST_TB_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r13, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_iwl_pcie_gen2_set_tb
	movslq	(%rbx), %rax
	movl	16(%rbp), %r15d
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	addl	%r12d, %r15d
	subl	%eax, %r15d
	addl	$4, %r15d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	(%r13), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edx
	callq	_dma_map_single
	movl	%eax, %r14d
	movl	(%r13), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_iwl_pcie_gen2_set_tb
	movq	_IWL_FIRST_TB_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_iwl_pcie_gen2_build_amsdu
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_iwl_pcie_gen2_tfd_unmap
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movslq	-60(%rbp), %rdi                 ## 4-byte Folded Reload
	shlq	$2, %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	movq	_IWL_FIRST_TB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_FIRST_TB_SIZE,4,2          ## @IWL_FIRST_TB_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_iwl_pcie_gen2_build_tx_amsdu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_gen2_build_tx_amsdu
_iwl_pcie_gen2_build_tx_amsdu:          ; @iwl_pcie_gen2_build_tx_amsdu
	.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
	mov	x27, x6
	mov	x24, x5
	mov	x20, x4
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	ldr	w1, [x1, #8]
	mov	x0, x23
	bl	_iwl_pcie_get_cmd_index
	mov	x25, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x25
	bl	_iwl_pcie_get_tfd
	mov	x21, x0
	mov	x0, x23
	mov	x1, x25
	bl	_iwl_pcie_get_first_tb_dma
	mov	x2, x0
Lloh0:
	adrp	x26, _IWL_FIRST_TB_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IWL_FIRST_TB_SIZE@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x0, x22
	mov	x1, x21
	bl	_iwl_pcie_gen2_set_tb
	ldrsw	x8, [x26]
	add	w9, w24, w27
	sub	w9, w9, w8
	add	w27, w9, #4
	add	x1, x19, x8, lsl #2
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x2, x27
	bl	_dma_map_single
	mov	x28, x0
	ldr	w0, [x22]
	mov	x1, x28
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x28
	mov	x3, x27
	bl	_iwl_pcie_gen2_set_tb
	ldr	w8, [x26]
	add	w3, w8, w27
	mov	x0, x22
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x21
	mov	x4, x24
	mov	x5, x19
	bl	_iwl_pcie_gen2_build_amsdu
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_iwl_pcie_gen2_tfd_unmap
	mov	x21, #0
LBB0_3:
	mov	x0, x21
	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_4:
	ldr	x8, [x23]
	add	x0, x8, w25, sxtw #2
	ldr	w2, [x26]
	mov	x1, x19
	bl	_memcpy
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_FIRST_TB_SIZE,4,2          ; @IWL_FIRST_TB_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_iwl_pcie_gen2_build_tx_amsdu
.subsections_via_symbols
