	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_unmap_send
_ql_unmap_send:                         ## @ql_unmap_send
	.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, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %r12
	movl	(%rdi), %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movq	_mapaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_unmap_addr
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	movq	_maplen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_unmap_len
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_pci_unmap_single
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_2
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	movl	$4, %r15d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %r8
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_netif_printk
	movl	(%r12), %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	addq	%r15, %rdi
	movq	_mapaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_unmap_addr
	movl	%eax, %r13d
	movq	(%r12), %rdi
	addq	%r15, %rdi
	movq	_maplen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_unmap_len
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_pci_unmap_page
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addq	$4, %r15
	cmpq	%rbx, -64(%rbp)                 ## 8-byte Folded Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r12), %ecx
	cmpl	$8, -44(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$7, %rbx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %r8
	xorl	%eax, %eax
	callq	_netif_printk
	movl	(%r12), %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	addq	%r15, %rdi
	movq	_mapaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_unmap_addr
	movl	%eax, %r14d
	movq	(%r12), %rdi
	addq	%r15, %rdi
	movq	_maplen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_unmap_len
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_pci_unmap_single
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_tx_done,4,2                    ## @tx_done
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unmapping OAL area.\n"

	.comm	_mapaddr,4,2                    ## @mapaddr
	.comm	_maplen,4,2                     ## @maplen
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
L_.str.1:                               ## @.str.1
	.asciz	"unmapping frag %d.\n"

	.no_dead_strip	_ql_unmap_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_unmap_send
_ql_unmap_send:                         ; @ql_unmap_send
	.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
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x0]
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _mapaddr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mapaddr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pci_unmap_addr
	mov	x23, x0
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _maplen@GOTPAGE
Lloh4:
	ldr	x8, [x8, _maplen@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_pci_unmap_len
	mov	x2, x0
Lloh6:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_pci_unmap_single
	cmp	w19, #1
	b.ne	LBB0_3
LBB0_2:
	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_3:
	mov	w22, w19
	mov	w23, #1
	mov	w26, #4
Lloh9:
	adrp	x27, _tx_done@GOTPAGE
Lloh10:
	ldr	x27, [x27, _tx_done@GOTPAGEOFF]
Lloh11:
	adrp	x28, _KERN_DEBUG@GOTPAGE
Lloh12:
	ldr	x28, [x28, _KERN_DEBUG@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x23, [sp]
	mov	x0, x21
Lloh13:
	adrp	x4, l_.str.1@PAGE
Lloh14:
	add	x4, x4, l_.str.1@PAGEOFF
	bl	_netif_printk
	ldr	w24, [x21]
	ldr	x8, [x20]
	add	x0, x8, x26
Lloh15:
	adrp	x8, _mapaddr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mapaddr@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_pci_unmap_addr
	mov	x25, x0
	ldr	x8, [x20]
	add	x0, x8, x26
Lloh18:
	adrp	x8, _maplen@GOTPAGE
Lloh19:
	ldr	x8, [x8, _maplen@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_pci_unmap_len
	mov	x2, x0
Lloh21:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x25
	bl	_pci_unmap_page
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	add	x26, x26, #4
	cmp	x22, x23
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x27]
	ldr	w2, [x28]
	ldr	w3, [x21, #4]
	cmp	w19, #8
	b.lo	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x23, #7
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
Lloh24:
	adrp	x4, l_.str@PAGE
Lloh25:
	add	x4, x4, l_.str@PAGEOFF
	bl	_netif_printk
	ldr	w24, [x21]
	ldr	x8, [x20]
	add	x0, x8, x26
Lloh26:
	adrp	x8, _mapaddr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _mapaddr@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_pci_unmap_addr
	mov	x25, x0
	ldr	x8, [x20]
	add	x0, x8, x26
Lloh29:
	adrp	x8, _maplen@GOTPAGE
Lloh30:
	ldr	x8, [x8, _maplen@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_pci_unmap_len
	mov	x2, x0
Lloh32:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x25
	bl	_pci_unmap_single
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_tx_done,4,2                    ; @tx_done
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unmapping OAL area.\n"

	.comm	_mapaddr,4,2                    ; @mapaddr
	.comm	_maplen,4,2                     ; @maplen
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
l_.str.1:                               ; @.str.1
	.asciz	"unmapping frag %d.\n"

	.no_dead_strip	_ql_unmap_send
.subsections_via_symbols
