	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_emul_dior
_pci_emul_dior:                         ## @pci_emul_dior
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $r9d killed $r9d def $r9
                                        ## kill: def $r8d killed $r8d def $r8
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	(%rdx), %rax
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.10:
	leal	-1(%rcx), %edx
	cmpl	$1, %edx
	ja	LBB0_17
## %bb.11:
	leal	(%r9,%r8), %ecx
	movq	_DMEMSZ@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jle	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_1:
	leal	(%r9,%r8), %ecx
	movq	_DIOSZ@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jle	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	xorl	%ebx, %ebx
	movl	%r8d, %esi
	movl	%r9d, %edx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_19
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%ecx, %esi
LBB0_18:
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_19
LBB0_4:
	cmpl	$4, %r9d
	je	LBB0_7
## %bb.5:
	cmpl	$2, %r9d
	je	LBB0_7
## %bb.6:
	cmpl	$1, %r9d
	jne	LBB0_9
LBB0_7:
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_13:
	leal	-1(%r9), %ecx
	cmpl	$7, %ecx
	ja	LBB0_16
## %bb.14:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_15:
	movq	8(%rax), %rax
	movl	%edx, %ecx
	movq	(%rax,%rcx,8), %rax
LBB0_8:
	movslq	%r8d, %rcx
	movl	(%rax,%rcx,4), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r9d, %esi
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	movl	%r9d, %esi
	xorl	%eax, %eax
	callq	_printf
                                        ## implicit-def: $ebx
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_DIOSZ,4,2                      ## @DIOSZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dior: ior too large, offset %ld size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"dior: ior unknown size %d\n"

	.comm	_DMEMSZ,4,2                     ## @DMEMSZ
L_.str.2:                               ## @.str.2
	.asciz	"dior: memr too large, offset %ld size %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"dior: unknown bar idx %d\n"

	.no_dead_strip	_pci_emul_dior
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_emul_dior
_pci_emul_dior:                         ; @pci_emul_dior
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
                                        ; kill: def $w5 killed $w5 def $x5
	ldr	x8, [x2]
	cbz	w3, LBB0_4
; %bb.1:
	sub	w9, w3, #1
	cmp	w9, #1
	b.hi	LBB0_6
; %bb.2:
Lloh0:
	adrp	x10, _DMEMSZ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DMEMSZ@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	add	w11, w5, w4
	cmp	w11, w10
	b.le	LBB0_13
; %bb.3:
                                        ; kill: def $w5 killed $w5 killed $x5 def $x5
	str	x5, [sp]
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x4
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x9, _DIOSZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DIOSZ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w10, w5, w4
	cmp	w10, w9
	b.le	LBB0_9
; %bb.5:
	str	x5, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x4
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x3
LBB0_7:
	bl	_printf
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_9:
	cmp	w5, #4
	b.eq	LBB0_12
; %bb.10:
	cmp	w5, #2
	b.eq	LBB0_12
; %bb.11:
	cmp	w5, #1
	b.ne	LBB0_16
LBB0_12:
	ldr	x8, [x8]
	ldr	w0, [x8, w4, sxtw #2]
	b	LBB0_8
LBB0_13:
	sub	w10, w5, #1
	cmp	w10, #7
	b.hi	LBB0_17
; %bb.14:
Lloh12:
	adrp	x11, lJTI0_0@PAGE
Lloh13:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_15
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_15:
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w9, uxtw #3]
	ldr	w0, [x8, w4, sxtw #2]
	b	LBB0_8
LBB0_16:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x5
	b	LBB0_7
LBB0_17:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x5
	bl	_printf
                                        ; implicit-def: $w0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
                                        ; -- End function
	.comm	_DIOSZ,4,2                      ; @DIOSZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dior: ior too large, offset %ld size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"dior: ior unknown size %d\n"

	.comm	_DMEMSZ,4,2                     ; @DMEMSZ
l_.str.2:                               ; @.str.2
	.asciz	"dior: memr too large, offset %ld size %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"dior: unknown bar idx %d\n"

	.no_dead_strip	_pci_emul_dior
.subsections_via_symbols
