	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PCIwrite                       ## -- Begin function PCIwrite
	.p2align	4, 0x90
_PCIwrite:                              ## @PCIwrite
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rcx, %r13
	movl	%edx, %r15d
	cmpl	$4, %r8d
	je	LBB0_5
## %bb.1:
	cmpl	$2, %r8d
	je	LBB0_4
## %bb.2:
	cmpl	$1, %r8d
	jne	LBB0_6
## %bb.3:
	movzbl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_write_config_byte          ## TAILCALL
LBB0_5:
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_write_config_dword         ## TAILCALL
LBB0_4:
	movzwl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_write_config_word          ## TAILCALL
LBB0_6:
	testb	$3, %r8b
	je	LBB0_7
## %bb.10:
	movl	%r8d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pci_write_config_byte
	incq	%rbx
	cmpl	%ebx, %r12d
	jne	LBB0_11
	jmp	LBB0_12
LBB0_7:
	cmpl	$4, %r8d
	jb	LBB0_12
## %bb.8:
	leal	3(%r8), %r12d
	testl	%r8d, %r8d
	cmovnsl	%r8d, %r12d
	sarl	$2, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pci_write_config_dword
	incq	%rbx
	cmpl	%ebx, %r12d
	jne	LBB0_9
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PCIwrite                       ; -- Begin function PCIwrite
	.p2align	2
_PCIwrite:                              ; @PCIwrite
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x5
	mov	x21, x3
	mov	x19, x2
	cmp	w4, #4
	b.eq	LBB0_4
; %bb.1:
	mov	x22, x4
	cmp	w4, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w22, #1
	b.ne	LBB0_6
; %bb.3:
	ldrb	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pci_write_config_byte
LBB0_4:
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pci_write_config_dword
LBB0_5:
	ldrh	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pci_write_config_word
LBB0_6:
	tst	w22, #0x3
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w22, w22, #1
	ldrb	w2, [x21], #4
	mov	x0, x20
	mov	x1, x19
	bl	_pci_write_config_byte
	cbnz	w22, LBB0_7
	b	LBB0_11
LBB0_8:
	cmp	w22, #4
	b.lo	LBB0_11
; %bb.9:
	add	w8, w22, #3
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w22, w8, #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w22, w22, #1
	ldr	w2, [x21], #4
	mov	x0, x20
	mov	x1, x19
	bl	_pci_write_config_dword
	cbnz	w22, LBB0_10
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
