	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_emul_io_handler
_pci_emul_io_handler:                   ## @pci_emul_io_handler
	.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	_PCI_BARMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$-1, %eax
	testl	%r15d, %r15d
	js	LBB0_10
## %bb.1:
	movl	%r8d, %r11d
	movl	%ecx, %r8d
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	16(%rbp), %r9
	movq	8(%r9), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r9), %rbx
	movq	_PCIBAR_IO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	leal	(%r11,%r8), %r13d
	incq	%r15
	addq	$12, %rbx
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, -12(%rbx)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-4(%rbx), %r10d
	cmpl	%r8d, %r10d
	jg	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %r14d
	addl	%r10d, %r14d
	cmpl	%r14d, %r13d
	jg	LBB0_2
## %bb.6:
	subl	%r10d, %r8d
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:
	movq	%r9, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r11d, %r9d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r9, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r11d, %r9d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_BARMAX,4,2                 ## @PCI_BARMAX
	.comm	_PCIBAR_IO,8,3                  ## @PCIBAR_IO
	.no_dead_strip	_pci_emul_io_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_emul_io_handler
_pci_emul_io_handler:                   ; @pci_emul_io_handler
	.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
Lloh0:
	adrp	x9, _PCI_BARMAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_BARMAX@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x9]
	tbnz	w12, #31, LBB0_8
; %bb.1:
	mov	x19, x5
	mov	x5, x4
	mov	x8, x3
	mov	x3, #0
	ldp	x13, x9, [x6]
Lloh3:
	adrp	x10, _PCIBAR_IO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PCIBAR_IO@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	w11, w4, w8
	add	x12, x12, #1
	add	x13, x13, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x3, x3, #1
	add	x13, x13, #16
	cmp	x12, x3
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x14, [x13, #-8]
	cmp	x14, x10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w14, [x13]
	cmp	w14, w8
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w15, [x13, #4]
	add	w15, w15, w14
	cmp	w11, w15
	b.gt	LBB0_2
; %bb.6:
	sub	w4, w8, w14
	cbz	w2, LBB0_10
; %bb.7:
	ldr	x8, [x9, #8]
	mov	x2, x6
                                        ; kill: def $w3 killed $w3 killed $x3
	blr	x8
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x9, [x9]
	ldr	w8, [x19]
	mov	x2, x6
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x6, x8
	blr	x9
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_BARMAX,4,2                 ; @PCI_BARMAX
	.comm	_PCIBAR_IO,8,3                  ; @PCIBAR_IO
	.no_dead_strip	_pci_emul_io_handler
.subsections_via_symbols
