	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_driver_firstopen        ## -- Begin function radeon_driver_firstopen
	.p2align	4, 0x90
_radeon_driver_firstopen:               ## @radeon_driver_firstopen
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_RADEON_PCIGART_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	(%rdi), %edi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, %r14d
	movl	%eax, (%r15)
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movq	__DRM_FRAME_BUFFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	__DRM_WRITE_COMBINING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	leaq	-32(%rbp), %r9
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_drm_addmap
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_PCIGART_TABLE_SIZE,4,2  ## @RADEON_PCIGART_TABLE_SIZE
	.comm	__DRM_FRAME_BUFFER,4,2          ## @_DRM_FRAME_BUFFER
	.comm	__DRM_WRITE_COMBINING,4,2       ## @_DRM_WRITE_COMBINING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_driver_firstopen        ; -- Begin function radeon_driver_firstopen
	.p2align	2
_radeon_driver_firstopen:               ; @radeon_driver_firstopen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _RADEON_PCIGART_TABLE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_PCIGART_TABLE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldr	w0, [x0]
	mov	w1, #0
	bl	_pci_resource_start
	mov	x20, x0
	str	w0, [x21]
	ldr	w0, [x19]
	mov	w1, #0
	bl	_pci_resource_len
	mov	x2, x0
Lloh3:
	adrp	x8, __DRM_FRAME_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, __DRM_FRAME_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, __DRM_WRITE_COMBINING@GOTPAGE
Lloh7:
	ldr	x8, [x8, __DRM_WRITE_COMBINING@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_drm_addmap
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_PCIGART_TABLE_SIZE,4,2  ; @RADEON_PCIGART_TABLE_SIZE
	.comm	__DRM_FRAME_BUFFER,4,2          ; @_DRM_FRAME_BUFFER
	.comm	__DRM_WRITE_COMBINING,4,2       ; @_DRM_WRITE_COMBINING
.subsections_via_symbols
