	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvnic_get_desired_dma
_ibmvnic_get_desired_dma:               ## @ibmvnic_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
	pushq	%rax
	.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, %r15
	movq	%rbx, %rdi
	callq	_get_iommu_table_base
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movl	$4, %edi
	movq	%r14, %rsi
	callq	_IOMMU_PAGE_ALIGN
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	4(%r15), %eax
	addl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	decl	%eax
	leaq	4(,%rax,4), %rax
	imulq	(%r13), %rax
	addq	%rax, %r12
LBB0_3:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	-8(%rax,%rbx), %r14
	movl	(%rax,%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_IOMMU_PAGE_ALIGN
	imulq	%r14, %rax
	addq	%rax, %r12
	incq	%r13
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_5
LBB0_6:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_IBMVNIC_IO_ENTITLEMENT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IOMMU_PAGE_ALIGN               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IBMVNIC_IO_ENTITLEMENT_DEFAULT,4,2 ## @IBMVNIC_IO_ENTITLEMENT_DEFAULT
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_ibmvnic_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 ibmvnic_get_desired_dma
_ibmvnic_get_desired_dma:               ; @ibmvnic_get_desired_dma
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x19
	bl	_get_iommu_table_base
	mov	x19, x0
	cbz	x20, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x21, [x22]
	mov	w0, #4
	mov	x1, x19
	bl	_IOMMU_PAGE_ALIGN
	add	x21, x0, x21
	ldp	w8, w9, [x20]
	add	w8, w9, w8
	subs	w8, w8, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	x9, [x22]
	lsl	x8, x8, #2
	add	x8, x8, #4
	madd	x21, x9, x8, x21
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x22
	ldr	x24, [x8]
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_IOMMU_PAGE_ALIGN
	madd	x21, x0, x24, x21
	add	x23, x23, #1
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	add	x22, x22, #16
	cmp	x23, w0, sxtw
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh2:
	adrp	x8, _IBMVNIC_IO_ENTITLEMENT_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IBMVNIC_IO_ENTITLEMENT_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_IOMMU_PAGE_ALIGN
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IBMVNIC_IO_ENTITLEMENT_DEFAULT,4,2 ; @IBMVNIC_IO_ENTITLEMENT_DEFAULT
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_ibmvnic_get_desired_dma
.subsections_via_symbols
