	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_mmio_info
_new_mmio_info:                         ## @new_mmio_info
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rbp), %rsi
	callq	_intel_gvt_match_device
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testq	%r13, %r13
	jle	LBB0_16
## %bb.5:
	addq	%rbx, %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, 8(%r15)
	movq	8(%r14), %rax
	movl	(%r15), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movslq	%edx, %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_INIT_HLIST_NODE
	movl	4(%r14), %edi
	movl	(%r15), %edx
	movq	%r12, %rsi
	callq	_hash_add
	incl	(%r14)
	addq	$4, %rbx
	cmpq	%r13, %rbx
	jge	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r15
	movl	%ebx, (%rax)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_find_mmio_info
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r15)
	movq	16(%rbp), %rax
	movq	%rax, 24(%r15)
	movq	24(%rbp), %rcx
	movq	%rcx, %rax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_intel_vgpu_default_mmio_read@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, 16(%r15)
	movq	32(%rbp), %rcx
	movq	%rcx, %rax
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_intel_vgpu_default_mmio_write@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_14
LBB0_15:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	%r15, %rdi
	callq	_kfree
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dup mmio definition offset %x\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_intel_vgpu_default_mmio_read,8,3 ## @intel_vgpu_default_mmio_read
	.comm	_intel_vgpu_default_mmio_write,8,3 ## @intel_vgpu_default_mmio_write
	.no_dead_strip	_new_mmio_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_mmio_info
_new_mmio_info:                         ; @new_mmio_info
	.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	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x25, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x1, x6
	bl	_intel_gvt_match_device
	cbz	w0, LBB0_10
; %bb.1:
	mov	x0, x23
	mov	w1, #4
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	cmp	x25, #1
	b.lt	LBB0_9
; %bb.5:
	ldr	x27, [x29, #16]
	add	x28, x25, x23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	str	w23, [x0]
	mov	x0, x24
	mov	x1, x23
	bl	_find_mmio_info
	cbnz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	stp	x20, x21, [x25, #24]
Lloh5:
	adrp	x8, _intel_vgpu_default_mmio_read@GOTPAGE
Lloh6:
	ldr	x8, [x8, _intel_vgpu_default_mmio_read@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x19, #0
	csel	x8, x8, x19, eq
Lloh8:
	adrp	x9, _intel_vgpu_default_mmio_write@GOTPAGE
Lloh9:
	ldr	x9, [x9, _intel_vgpu_default_mmio_write@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x27, #0
	csel	x9, x9, x27, eq
	stp	x9, x8, [x25, #8]
	ldr	x8, [x24, #8]
	ldr	w9, [x25]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	str	w22, [x8, w9, sxtw #2]
	add	x26, x25, #4
	mov	x0, x26
	bl	_INIT_HLIST_NODE
	ldr	w0, [x24, #4]
	ldr	w2, [x25]
	mov	x1, x26
	bl	_hash_add
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	add	x23, x23, #4
	cmp	x23, x28
	b.lt	LBB0_6
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_12:
	ldr	w2, [x25]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	mov	x0, x25
	bl	_kfree
Lloh15:
	adrp	x8, _EEXIST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dup mmio definition offset %x\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_intel_vgpu_default_mmio_read,8,3 ; @intel_vgpu_default_mmio_read
	.comm	_intel_vgpu_default_mmio_write,8,3 ; @intel_vgpu_default_mmio_write
	.no_dead_strip	_new_mmio_info
.subsections_via_symbols
