	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_setup                      ## -- Begin function drm_setup
	.p2align	4, 0x90
_drm_setup:                             ## @drm_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_g_drm_encoder@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_g_crtc_id@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_g_drm_connector@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_g_connector_id@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	callq	_drmModeGetCrtc
	movq	_g_orig_crtc@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_RARCH_WARN                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_drm_encoder,8,3              ## @g_drm_encoder
	.comm	_g_crtc_id,4,2                  ## @g_crtc_id
	.comm	_g_drm_connector,8,3            ## @g_drm_connector
	.comm	_g_connector_id,4,2             ## @g_connector_id
	.comm	_g_orig_crtc,4,2                ## @g_orig_crtc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DRM]: Cannot find original CRTC.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_setup                      ; -- Begin function drm_setup
	.p2align	2
_drm_setup:                             ; @drm_setup
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _g_drm_encoder@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_drm_encoder@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _g_crtc_id@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_crtc_id@GOTPAGEOFF]
Lloh5:
	adrp	x9, _g_drm_connector@GOTPAGE
Lloh6:
	ldr	x9, [x9, _g_drm_connector@GOTPAGEOFF]
Lloh7:
	str	w1, [x8]
Lloh8:
	ldr	x8, [x9]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _g_connector_id@GOTPAGE
Lloh10:
	ldr	x9, [x9, _g_connector_id@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	bl	_drmModeGetCrtc
Lloh12:
	adrp	x8, _g_orig_crtc@GOTPAGE
Lloh13:
	ldr	x8, [x8, _g_orig_crtc@GOTPAGEOFF]
Lloh14:
	str	w0, [x8]
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_RARCH_WARN
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_g_drm_encoder,8,3              ; @g_drm_encoder
	.comm	_g_crtc_id,4,2                  ; @g_crtc_id
	.comm	_g_drm_connector,8,3            ; @g_drm_connector
	.comm	_g_connector_id,4,2             ; @g_connector_id
	.comm	_g_orig_crtc,4,2                ; @g_orig_crtc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DRM]: Cannot find original CRTC.\n"

.subsections_via_symbols
