	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdx_tx_map_skb
_bdx_tx_map_skb:                        ## @bdx_tx_map_skb
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	8(%rdi), %r12
	movq	(%rdx), %r14
	movq	%rsi, %rdi
	callq	_skb_shinfo
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_skb_headlen
	movq	8(%r13), %rcx
	movl	%eax, 16(%rcx)
	movq	(%r13), %rdi
	movl	(%rbx), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	callq	_pci_map_single
	movq	8(%r13), %rcx
	movl	%eax, 8(%rcx)
	movl	16(%rcx), %edi
	callq	_CPU_CHIP_SWAP32
	movq	%rax, 16(%r14)
	movq	8(%r13), %rax
	movl	8(%rax), %edi
	callq	_L32_64
	movl	%eax, %edi
	callq	_CPU_CHIP_SWAP32
	movq	%rax, 8(%r14)
	movq	8(%r13), %rax
	movl	8(%rax), %edi
	callq	_H32_64
	movl	%eax, %edi
	callq	_CPU_CHIP_SWAP32
	movq	%rax, (%r14)
	movq	16(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movq	8(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_DBG
	movq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_DBG
	movq	%r12, %rdi
	callq	_bdx_tx_db_inc_wptr
	movq	%r15, %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	$40, %r14
	xorl	%r15d, %r15d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r15, %rbx
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	8(%r13), %rcx
	movl	%eax, 16(%rcx)
	movq	(%r13), %r12
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movq	8(%r13), %rcx
	movl	%eax, 8(%rcx)
	movl	16(%rcx), %edi
	callq	_CPU_CHIP_SWAP32
	movq	%rax, (%r14)
	movq	8(%r13), %rax
	movl	8(%rax), %edi
	callq	_L32_64
	movl	%eax, %edi
	callq	_CPU_CHIP_SWAP32
	movq	%rax, -8(%r14)
	movq	8(%r13), %rax
	movl	8(%rax), %edi
	callq	_H32_64
	movl	%eax, %edi
	callq	_CPU_CHIP_SWAP32
	movq	%rax, -16(%r14)
	movq	%r12, %rdi
	callq	_bdx_tx_db_inc_wptr
	addq	$4, %r15
	addq	$24, %r14
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_3:
	movq	_txd_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	xorl	%edx, %edx
	subl	(%rax,%rcx,4), %edx
	movq	(%r12), %rax
	movl	%edx, 16(%rax)
	movq	%rbx, (%rax)
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bdx_tx_db_inc_wptr             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=== pbl   len: 0x%x ================\n"

L_.str.1:                               ## @.str.1
	.asciz	"=== pbl pa_lo: 0x%x ================\n"

L_.str.2:                               ## @.str.2
	.asciz	"=== pbl pa_hi: 0x%x ================\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_txd_sizes,8,3                  ## @txd_sizes
	.no_dead_strip	_bdx_tx_map_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdx_tx_map_skb
_bdx_tx_map_skb:                        ; @bdx_tx_map_skb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	ldr	x22, [x2]
	mov	x0, x1
	bl	_skb_shinfo
	ldr	w24, [x0]
	mov	x0, x19
	bl	_skb_headlen
	mov	x2, x0
	mov	x21, x20
	ldr	x8, [x21, #8]!
	str	w0, [x8, #16]
	ldr	x0, [x20]
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_pci_map_single
	ldr	x8, [x21]
	str	w0, [x8, #8]
	ldr	w0, [x8, #16]
	bl	_CPU_CHIP_SWAP32
	str	x0, [x22, #16]
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	bl	_L32_64
	bl	_CPU_CHIP_SWAP32
	str	x0, [x22, #8]
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	bl	_H32_64
	bl	_CPU_CHIP_SWAP32
	str	x0, [x22]
	ldr	x1, [x22, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	x1, [x22, #8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
	ldr	x1, [x22]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG
	mov	x0, x21
	bl	_bdx_tx_db_inc_wptr
	cmp	w24, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	lsl	x26, x24, #2
	add	x27, x22, #40
Lloh9:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x22, x8, x25
	mov	x0, x22
	bl	_skb_frag_size
	ldp	x23, x8, [x20]
	str	w0, [x8, #16]
	mov	x0, x22
	bl	_skb_frag_size
	mov	x3, x0
	ldr	w4, [x28]
	mov	x0, x23
	mov	x1, x22
	mov	w2, #0
	bl	_skb_frag_dma_map
	ldr	x8, [x20, #8]
	str	w0, [x8, #8]
	ldr	w0, [x8, #16]
	bl	_CPU_CHIP_SWAP32
	str	x0, [x27]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	bl	_L32_64
	bl	_CPU_CHIP_SWAP32
	stur	x0, [x27, #-8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	bl	_H32_64
	bl	_CPU_CHIP_SWAP32
	stur	x0, [x27, #-16]
	mov	x0, x21
	bl	_bdx_tx_db_inc_wptr
	add	x25, x25, #4
	add	x27, x27, #24
	cmp	x26, x25
	b.ne	LBB0_2
LBB0_3:
Lloh11:
	adrp	x8, _txd_sizes@GOTPAGE
Lloh12:
	ldr	x8, [x8, _txd_sizes@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w8, [x8, w24, sxtw #2]
	neg	w8, w8
	ldr	x9, [x21]
	str	w8, [x9, #16]
	str	x19, [x9]
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_bdx_tx_db_inc_wptr
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=== pbl   len: 0x%x ================\n"

l_.str.1:                               ; @.str.1
	.asciz	"=== pbl pa_lo: 0x%x ================\n"

l_.str.2:                               ; @.str.2
	.asciz	"=== pbl pa_hi: 0x%x ================\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_txd_sizes,8,3                  ; @txd_sizes
	.no_dead_strip	_bdx_tx_map_skb
.subsections_via_symbols
