	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_tx_skb_unmap
_tg3_tx_skb_unmap:                      ## @tg3_tx_skb_unmap
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	%rsi, %r14
	shlq	$4, %r14
	leaq	(%rbx,%r14), %r13
	movq	8(%rbx,%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%rbx,%r14)
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dma_unmap_addr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_headlen
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_pci_unmap_single
	cmpl	$0, (%rbx,%r14)
	je	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%r13)
	movq	%r15, %rdi
	callq	_NEXT_TX
	movq	%rax, %r15
	movq	(%r12), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r13
	cmpl	$0, (%rax,%rcx)
	jne	LBB0_9
LBB0_1:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_8
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	leaq	(,%r14,4), %r13
	addq	(%rax), %r13
	movq	%r15, %rdi
	callq	_NEXT_TX
	movq	%rax, %r15
	movq	%rax, %r14
	shlq	$4, %r14
	movq	(%r12), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	leaq	(%rcx,%r14), %rbx
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_skb_frag_size
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_pci_unmap_page
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax,%r14)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$0, (%rbx)
	movq	%r15, %rdi
	callq	_NEXT_TX
	movq	%rax, %r15
	movq	(%r12), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rbx
	cmpl	$0, (%rax,%rcx)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapping,4,2                    ## @mapping
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_tg3_tx_skb_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_tx_skb_unmap
_tg3_tx_skb_unmap:                      ; @tg3_tx_skb_unmap
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x8, x9, [x0]
	add	x23, x8, x1, lsl #4
	ldr	x20, [x23, #8]
	str	xzr, [x23, #8]
	ldr	w24, [x9]
Lloh0:
	adrp	x8, _mapping@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_dma_unmap_addr
	mov	x25, x0
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
Lloh3:
	adrp	x27, _PCI_DMA_TODEVICE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldr	w3, [x27]
	mov	x0, x24
	mov	x1, x25
	bl	_pci_unmap_single
	ldr	w8, [x23]
	cbz	w8, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x23]
	mov	x0, x21
	bl	_NEXT_TX
	mov	x21, x0
	ldr	x8, [x19]
	add	x23, x8, x0, lsl #4
	ldr	w8, [x23]
	cbnz	w8, LBB0_1
LBB0_2:
	tbnz	w22, #31, LBB0_7
; %bb.3:
	mov	x28, #0
	add	w26, w22, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	cmp	x28, x26
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0]
	add	x23, x8, x28, lsl #2
	mov	x0, x21
	bl	_NEXT_TX
	mov	x21, x0
	ldp	x8, x9, [x19]
	add	x22, x8, x0, lsl #4
	ldr	w24, [x9]
Lloh5:
	adrp	x8, _mapping@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_dma_unmap_addr
	mov	x25, x0
	mov	x0, x23
	bl	_skb_frag_size
	mov	x2, x0
	ldr	w3, [x27]
	mov	x0, x24
	mov	x1, x25
	bl	_pci_unmap_page
	ldr	w8, [x22]
	cbz	w8, LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	wzr, [x22]
	mov	x0, x21
	bl	_NEXT_TX
	mov	x21, x0
	ldr	x8, [x19]
	add	x22, x8, x0, lsl #4
	ldr	w8, [x22]
	cbnz	w8, LBB0_6
	b	LBB0_4
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mapping,4,2                    ; @mapping
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_tg3_tx_skb_unmap
.subsections_via_symbols
