	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcifront_bus_write
_pcifront_bus_write:                    ## @pcifront_bus_write
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, -72(%rbp)
	movl	%edx, -68(%rbp)
	movl	%ecx, -64(%rbp)
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movl	%r8d, -60(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -56(%rbp)
	callq	_pci_domain_nr
	movl	%eax, -52(%rbp)
	movq	_XEN_PCI_OP_conf_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%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
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	movl	(%r14), %r14d
	movl	%ebx, %edi
	callq	_PCI_SLOT
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_PCI_FUNC
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_dev_info
	addq	$32, %rsp
LBB0_2:
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_do_pci_op
	movl	%eax, %edi
	callq	_errno_to_pcibios_err
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XEN_PCI_OP_conf_write,4,2      ## @XEN_PCI_OP_conf_write
	.comm	_verbose_request,8,3            ## @verbose_request
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write dev=%04x:%02x:%02x.%d - offset %x size %d val %x\n"

	.no_dead_strip	_pcifront_bus_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcifront_bus_write
_pcifront_bus_write:                    ; @pcifront_bus_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	stp	w1, w2, [sp, #16]
	stp	w3, w4, [sp, #24]
	ldr	w8, [x0]
	str	w8, [sp, #32]
	bl	_pci_domain_nr
Lloh0:
	adrp	x8, _XEN_PCI_OP_conf_write@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XEN_PCI_OP_conf_write@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #36]
	ldr	x0, [x24, #8]
	bl	_pcifront_get_pdev
	mov	x22, x0
Lloh3:
	adrp	x8, _verbose_request@GOTPAGE
Lloh4:
	ldr	x8, [x8, _verbose_request@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x25, [x22]
	mov	x0, x24
	bl	_pci_domain_nr
	mov	x26, x0
	ldr	w24, [x24]
	mov	x0, x23
	bl	_PCI_SLOT
	mov	x27, x0
	mov	x0, x23
	bl	_PCI_FUNC
	mov	x5, x0
	str	w21, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	mov	x2, x26
	mov	x3, x24
	mov	x4, x27
	mov	x6, x20
	mov	x7, x19
	bl	_dev_info
LBB0_2:
	add	x1, sp, #16
	mov	x0, x22
	bl	_do_pci_op
	bl	_errno_to_pcibios_err
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_XEN_PCI_OP_conf_write,4,2      ; @XEN_PCI_OP_conf_write
	.comm	_verbose_request,8,3            ; @verbose_request
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write dev=%04x:%02x:%02x.%d - offset %x size %d val %x\n"

	.no_dead_strip	_pcifront_bus_write
.subsections_via_symbols
