	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_init
_exynos_init:                           ## @exynos_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	movq	_g_drm_connector@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	movq	8(%rax), %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rax
	decq	%rcx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdx, 8(%rax)
	jne	LBB0_6
	jmp	LBB0_10
LBB0_9:
	movq	_g_drm_connector@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
LBB0_10:
	movq	_g_drm_mode@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_11
LBB0_7:
	movq	_g_drm_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_11:
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.16:
	movq	_g_drm_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_drm_setup
	movq	_g_drm_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	%rsi, (%rbx)
	movq	8(%rax), %rdx
	cvtsi2ss	%rsi, %xmm0
	movq	%rdx, 8(%rbx)
	cvtsi2ss	%rdx, %xmm1
	divss	%xmm1, %xmm0
	movss	%xmm0, 16(%rbx)
	movl	$3, 20(%rbx)
	movl	%r14d, 24(%rbx)
	movl	%esi, %eax
	imull	%r14d, %eax
	movl	%eax, 28(%rbx)
	imull	%edx, %eax
	movl	%eax, 32(%rbx)
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %ecx
	callq	_RARCH_LOG
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_ERR
LBB0_14:
	xorl	%eax, %eax
	callq	_drm_restore_crtc
	movq	_g_drm_mode@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	$-1, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_ERR
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_g_drm_connector,8,3            ## @g_drm_connector
	.comm	_g_drm_mode,8,3                 ## @g_drm_mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[video_exynos]: requested resolution (%ux%u) not available\n"

L_.str.1:                               ## @.str.1
	.asciz	"[video_exynos]: failed to select sane resolution\n"

	.comm	_g_drm_fd,4,2                   ## @g_drm_fd
L_.str.2:                               ## @.str.2
	.asciz	"[video_exynos]: selected %ux%u resolution with %u bpp\n"

	.no_dead_strip	_exynos_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_init
_exynos_init:                           ; @exynos_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_config_get_ptr
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_7
; %bb.2:
Lloh0:
	adrp	x10, _g_drm_connector@GOTPAGE
Lloh1:
	ldr	x10, [x10, _g_drm_connector@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w11, [x10]
	cbz	w11, LBB0_9
; %bb.3:
	ldr	x10, [x10, #8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #16
	subs	x11, x11, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x10, #8]
	cmp	x12, x9
	b.ne	LBB0_4
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _g_drm_connector@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_drm_connector@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x10, [x8, #8]
LBB0_8:
Lloh6:
	adrp	x8, _g_drm_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_drm_mode@GOTPAGEOFF]
Lloh8:
	str	x10, [x8]
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x10, _g_drm_mode@GOTPAGE
Lloh10:
	ldr	x10, [x10, _g_drm_mode@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cbz	x10, LBB0_16
LBB0_10:
	ldr	x8, [x10]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	x8, [x10, #8]
	cbz	x8, LBB0_13
; %bb.12:
Lloh12:
	adrp	x8, _g_drm_fd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _g_drm_fd@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_drm_setup
Lloh15:
	adrp	x8, _g_drm_mode@GOTPAGE
Lloh16:
	ldr	x8, [x8, _g_drm_mode@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldp	x1, x2, [x8]
	scvtf	s0, x1
	stp	x1, x2, [x20]
	scvtf	s1, x2
	fdiv	s0, s0, s1
	str	s0, [x20, #16]
	mov	w8, #3
	stp	w8, w19, [x20, #20]
	mul	w8, w1, w19
	mul	w9, w8, w2
	stp	w8, w9, [x20, #28]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x19
	bl	_RARCH_LOG
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
	bl	_RARCH_ERR
	bl	_drm_restore_crtc
Lloh22:
	adrp	x8, _g_drm_mode@GOTPAGE
Lloh23:
	ldr	x8, [x8, _g_drm_mode@GOTPAGEOFF]
Lloh24:
	str	xzr, [x8]
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_16:
	stp	x8, x9, [sp]
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_g_drm_connector,8,3            ; @g_drm_connector
	.comm	_g_drm_mode,8,3                 ; @g_drm_mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[video_exynos]: requested resolution (%ux%u) not available\n"

l_.str.1:                               ; @.str.1
	.asciz	"[video_exynos]: failed to select sane resolution\n"

	.comm	_g_drm_fd,4,2                   ; @g_drm_fd
l_.str.2:                               ; @.str.2
	.asciz	"[video_exynos]: selected %ux%u resolution with %u bpp\n"

	.no_dead_strip	_exynos_init
.subsections_via_symbols
