	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_fill_data_tbs
_iwl_fill_data_tbs:                     ## @iwl_fill_data_tbs
	.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
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_skb_headlen
	movq	%rax, %rbx
	subq	%r14, %rbx
	jle	LBB0_3
## %bb.1:
	movl	(%r13), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdx
	callq	_dma_map_single
	movl	%eax, %r15d
	movl	(%r13), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_2:
	movl	(%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	(%rsi), %r14
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_trace_iwlwifi_dev_tx_tb
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_iwl_pcie_txq_build_tfd
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.4:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	callq	_BIT
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_skb_frag_size
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %r12d
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r12d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_skb_frag_dma_map
	movl	%eax, %r12d
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_skb_frag_address
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	callq	_trace_iwlwifi_dev_tx_tb
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_iwl_pcie_txq_build_tfd
	testl	%eax, %eax
	jns	LBB0_9
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iwl_fill_data_tbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_fill_data_tbs
_iwl_fill_data_tbs:                     ; @iwl_fill_data_tbs
	.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	x19, x4
	mov	x24, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_skb_headlen
	sub	x23, x0, x24
Lloh0:
	adrp	x20, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DMA_TO_DEVICE@GOTPAGEOFF]
	cmp	x23, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w0, [x22]
	ldr	x8, [x21]
	add	x1, x8, x24
	ldr	w3, [x20]
	mov	x2, x23
	bl	_dma_map_single
	mov	x25, x0
	ldr	w0, [x22]
	mov	x1, x25
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_3:
	ldr	w0, [x22]
	ldr	x8, [x21]
	add	x2, x8, x24
	mov	x1, x21
	mov	x3, x23
	bl	_trace_iwlwifi_dev_tx_tb
	mov	x0, x22
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x25
	mov	x3, x23
	mov	w4, #0
	bl	_iwl_pcie_txq_build_tfd
LBB0_4:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x28, #0
	mov	x27, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_BIT
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x27, x27, #1
	mov	x0, x21
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x28, x28, #4
	cmp	x27, x8
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x23, x8, x28
	mov	x0, x23
	bl	_skb_frag_size
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w24, [x22]
	mov	x0, x23
	bl	_skb_frag_size
	mov	x3, x0
	ldr	w4, [x20]
	mov	x0, x24
	mov	x1, x23
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x24, x0
	ldr	w0, [x22]
	mov	x1, x24
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w25, [x22]
	mov	x0, x23
	bl	_skb_frag_address
	mov	x26, x0
	mov	x0, x23
	bl	_skb_frag_size
	mov	x3, x0
	mov	x0, x25
	mov	x1, x21
	mov	x2, x26
	bl	_trace_iwlwifi_dev_tx_tb
	mov	x0, x23
	bl	_skb_frag_size
	mov	x3, x0
	mov	x0, x22
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x24
	mov	w4, #0
	bl	_iwl_pcie_txq_build_tfd
	tbz	w0, #31, LBB0_6
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iwl_fill_data_tbs
.subsections_via_symbols
