	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_write                      ## -- Begin function pci_write
	.p2align	4, 0x90
_pci_write:                             ## @pci_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %ebx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	16(%rbp), %r13d
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	callq	_pci_cfg_addr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r8d
	andl	$-4, %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	$4, %r9d
	callq	_pci_read
	shll	$3, %r12d
	movl	$-1, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	notl	%edx
	shll	$3, %ebx
	movl	%ebx, %ecx
	shll	%cl, %edx
	shll	%cl, %r13d
	andl	%edx, %r13d
	notl	%edx
	movslq	%edx, %rcx
	andq	%rax, %rcx
	movslq	%r13d, %r14
	orq	%rcx, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_rev32
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_sync
	movq	%r14, %rdi
	callq	_rev32
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	xorl	%eax, %eax
	callq	_sync
	movq	(%r15), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sync                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_write                      ; -- Begin function pci_write
	.p2align	2
_pci_write:                             ; @pci_write
	.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, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x8, [x0]
	ldr	x27, [x8]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	bl	_pci_cfg_addr
	mov	x26, x0
	and	w4, w21, #0xfffffffc
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	w5, #4
	bl	_pci_read
	lsl	w8, w20, #3
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	ubfiz	w9, w21, #3, #2
	lsl	w8, w8, w9
	mvn	w10, w8
	sxtw	x10, w10
	and	x10, x0, x10
	lsl	w9, w19, w9
	and	w8, w8, w9
	sxtw	x8, w8
	orr	x19, x10, x8
	mov	x0, x26
	bl	_rev32
	ldr	x8, [x25]
	str	x0, [x8]
	bl	_sync
	mov	x0, x19
	bl	_rev32
	ldr	x8, [x25]
	str	x0, [x8, #8]
	bl	_sync
	ldr	x8, [x25]
	str	x27, [x8]
	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
	b	_sync
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
