	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcifront_bus_read
_pcifront_bus_read:                     ## @pcifront_bus_read
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, -80(%rbp)
	movl	%edx, -76(%rbp)
	movl	%ecx, -72(%rbp)
	movl	$0, -68(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -64(%rbp)
	callq	_pci_domain_nr
	movl	%eax, -60(%rbp)
	movq	_XEN_PCI_OP_conf_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	8(%r14), %rdi
	callq	_pcifront_get_pdev
	movq	%rax, %r13
	movq	_verbose_request@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_pci_domain_nr
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_PCI_SLOT
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_PCI_FUNC
	leaq	L_.str(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r15
	callq	_dev_info
	addq	$16, %rsp
LBB0_2:
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_do_pci_op
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_verbose_request@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	(%r13), %rdi
	movl	-68(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_5:
	movl	-68(%rbp), %eax
	movl	%ebx, %ecx
	jmp	LBB0_7
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	(%rcx), %edx
	movl	$0, %ecx
	addl	%ebx, %edx
	jne	LBB0_8
LBB0_7:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movl	%ecx, %ebx
LBB0_8:
	movl	%ebx, %edi
	callq	_errno_to_pcibios_err
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XEN_PCI_OP_conf_read,4,2       ## @XEN_PCI_OP_conf_read
	.comm	_verbose_request,8,3            ## @verbose_request
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read dev=%04x:%02x:%02x.%d - offset %x size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"read got back value %x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_pcifront_bus_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcifront_bus_read
_pcifront_bus_read:                     ; @pcifront_bus_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	stp	w1, w2, [sp, #48]
	stp	w3, wzr, [sp, #56]
	ldr	w8, [x0]
	str	w8, [sp, #64]
	bl	_pci_domain_nr
Lloh0:
	adrp	x8, _XEN_PCI_OP_conf_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XEN_PCI_OP_conf_read@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #68]
	ldr	x0, [x24, #8]
	bl	_pcifront_get_pdev
	mov	x20, x0
Lloh3:
	adrp	x27, _verbose_request@GOTPAGE
Lloh4:
	ldr	x27, [x27, _verbose_request@GOTPAGEOFF]
	ldr	x8, [x27]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x25, [x20]
	mov	x0, x24
	bl	_pci_domain_nr
	mov	x26, x0
	ldr	w28, [x24]
	mov	x0, x23
	bl	_PCI_SLOT
	mov	x24, x0
	mov	x0, x23
	bl	_PCI_FUNC
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x22, [sp, #24]
	stp	x24, x0, [sp, #8]
	str	x28, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	mov	x2, x26
	bl	_dev_info
LBB0_2:
	add	x1, sp, #48
	mov	x0, x20
	bl	_do_pci_op
	mov	x21, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x27]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x0, [x20]
	ldr	w2, [sp, #60]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
LBB0_5:
	ldr	w8, [sp, #60]
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_9
; %bb.7:
	mov	w8, #0
	mov	w21, #0
LBB0_8:
	str	w8, [x19]
LBB0_9:
	mov	x0, x21
	bl	_errno_to_pcibios_err
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XEN_PCI_OP_conf_read,4,2       ; @XEN_PCI_OP_conf_read
	.comm	_verbose_request,8,3            ; @verbose_request
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read dev=%04x:%02x:%02x.%d - offset %x size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"read got back value %x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_pcifront_bus_read
.subsections_via_symbols
