	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmveth_get_desired_dma
_ibmveth_get_desired_dma:               ## @ibmveth_get_desired_dma
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_get_iommu_table_base
	movq	%rax, %r14
	testq	%r12, %r12
	je	LBB0_9
## %bb.1:
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_IBMVETH_BUFF_LIST_SIZE@GOTPCREL(%rip), %rax
	movq	_IBMVETH_FILT_LIST_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	(%rax), %rbx
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_IOMMU_PAGE_ALIGN
	movq	%rax, %r13
	addq	%rbx, %r13
	movq	_IBMVETH_NUM_BUFF_POOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rcx
	movl	$1, %r12d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	addq	(%rcx,%rbx), %rdi
	incq	%r14
	movslq	%edi, %r12
	movslq	%eax, %rdx
	addq	$24, %rbx
	cmpq	%rdx, %r14
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rcx,%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	movq	(%rcx,%rbx), %r15
	movl	8(%rcx,%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_IOMMU_PAGE_ALIGN
	imulq	%r15, %rax
	movq	%r13, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	addq	%rax, %r13
	movq	(%r15), %rcx
	movq	_IBMVETH_NUM_BUFF_POOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_7:
	shll	$2, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	movq	_IBMVETH_IO_ENTITLEMENT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IOMMU_PAGE_ALIGN               ## TAILCALL
LBB0_2:
	movl	$4, %edi
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rsi
	callq	_IOMMU_PAGE_ALIGN
	addq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBMVETH_IO_ENTITLEMENT_DEFAULT,4,2 ## @IBMVETH_IO_ENTITLEMENT_DEFAULT
	.comm	_IBMVETH_BUFF_LIST_SIZE,8,3     ## @IBMVETH_BUFF_LIST_SIZE
	.comm	_IBMVETH_FILT_LIST_SIZE,8,3     ## @IBMVETH_FILT_LIST_SIZE
	.comm	_IBMVETH_NUM_BUFF_POOLS,4,2     ## @IBMVETH_NUM_BUFF_POOLS
	.no_dead_strip	_ibmveth_get_desired_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmveth_get_desired_dma
_ibmveth_get_desired_dma:               ; @ibmveth_get_desired_dma
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x19
	bl	_get_iommu_table_base
	mov	x19, x0
	cbz	x21, LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _IBMVETH_BUFF_LIST_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBMVETH_BUFF_LIST_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IBMVETH_FILT_LIST_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IBMVETH_FILT_LIST_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x22, x9, x8
	ldr	w0, [x21]
	mov	x1, x19
	bl	_IOMMU_PAGE_ALIGN
	add	x21, x22, x0
Lloh6:
	adrp	x22, _IBMVETH_NUM_BUFF_POOLS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IBMVETH_NUM_BUFF_POOLS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x23, #0
	mov	x24, #0
	ldr	x9, [x20]
	mov	w25, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x9, x23]
	add	x10, x10, x25
	add	x24, x24, #1
	sxtw	x25, w10
	add	x23, x23, #24
	cmp	x24, w8, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x9, x23
	ldr	x11, [x10, #16]
	cbz	x11, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [x10]
	ldr	w0, [x10, #8]
	mov	x1, x19
	bl	_IOMMU_PAGE_ALIGN
	madd	x21, x0, x26, x21
	ldr	x9, [x20]
	ldr	w8, [x22]
	b	LBB0_3
LBB0_6:
	lsl	w0, w10, #2
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _IBMVETH_IO_ENTITLEMENT_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IBMVETH_IO_ENTITLEMENT_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_IOMMU_PAGE_ALIGN
LBB0_8:
	mov	w0, #4
LBB0_9:
	mov	x1, x19
	bl	_IOMMU_PAGE_ALIGN
	add	x0, x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IBMVETH_IO_ENTITLEMENT_DEFAULT,4,2 ; @IBMVETH_IO_ENTITLEMENT_DEFAULT
	.comm	_IBMVETH_BUFF_LIST_SIZE,8,3     ; @IBMVETH_BUFF_LIST_SIZE
	.comm	_IBMVETH_FILT_LIST_SIZE,8,3     ; @IBMVETH_FILT_LIST_SIZE
	.comm	_IBMVETH_NUM_BUFF_POOLS,4,2     ; @IBMVETH_NUM_BUFF_POOLS
	.no_dead_strip	_ibmveth_get_desired_dma
.subsections_via_symbols
