	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_vgpu_write_pci_bar
_intel_vgpu_write_pci_bar:              ## @intel_vgpu_write_pci_bar
	.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
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	movl	$4, %esi
	callq	_rounddown
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_vgpu_cfg_space
	movslq	%eax, %r15
	movslq	%r12d, %r12
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	$31, %edi
	movl	$4, %esi
	callq	_GENMASK
	movl	%eax, %r14d
	andl	%ebx, %r14d
	movl	(%r12,%r15), %r13d
	movl	$3, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, %ebx
	andl	%r13d, %ebx
	orl	%r14d, %ebx
LBB0_2:
	movl	%ebx, (%r12,%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_vgpu_write_pci_bar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_vgpu_write_pci_bar
_intel_vgpu_write_pci_bar:              ; @intel_vgpu_write_pci_bar
	.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, x3
	mov	x19, x2
	mov	x21, x0
	mov	x0, x1
	mov	w1, #4
	bl	_rounddown
	mov	x22, x0
	mov	x0, x21
	bl	_vgpu_cfg_space
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	sxtw	x22, w22
	cbz	w20, LBB0_2
; %bb.1:
	mov	w0, #31
	mov	w1, #4
	bl	_GENMASK
	and	w19, w0, w19
	ldr	w20, [x22, x21]
	mov	w0, #3
	mov	w1, #0
	bl	_GENMASK
	and	w8, w0, w20
	orr	w19, w8, w19
LBB0_2:
	str	w19, [x22, x21]
	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
	.no_dead_strip	_intel_vgpu_write_pci_bar
.subsections_via_symbols
