	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function myri10ge_unmap_rx_page
_myri10ge_unmap_rx_page:                ## @myri10ge_unmap_rx_page
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MYRI10GE_ALLOC_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%edx, %ecx
	jle	LBB0_3
## %bb.1:
	addl	%edx, %edx
	addl	(%rsi), %edx
	cmpl	%eax, %edx
	jle	LBB0_2
LBB0_3:
	movq	_bus@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_dma_unmap_addr
	movl	(%r14), %edx
	movl	%edx, %esi
	negl	%esi
	andl	%eax, %esi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pci_unmap_page                 ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MYRI10GE_ALLOC_SIZE,4,2        ## @MYRI10GE_ALLOC_SIZE
	.comm	_bus,4,2                        ## @bus
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_myri10ge_unmap_rx_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function myri10ge_unmap_rx_page
_myri10ge_unmap_rx_page:                ; @myri10ge_unmap_rx_page
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _MYRI10GE_ALLOC_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MYRI10GE_ALLOC_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w9, w8, lt
	cmp	w2, w9, asr #1
	b.ge	LBB0_2
; %bb.1:
	ldr	w9, [x1]
	add	w9, w9, w2, lsl #1
	cmp	w9, w8
	b.le	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _bus@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bus@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x8
	bl	_dma_unmap_addr
	ldr	w2, [x20]
Lloh5:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	neg	w9, w2
	and	w1, w0, w9
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_unmap_page
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MYRI10GE_ALLOC_SIZE,4,2        ; @MYRI10GE_ALLOC_SIZE
	.comm	_bus,4,2                        ; @bus
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_myri10ge_unmap_rx_page
.subsections_via_symbols
