	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgui_set_pixel_format_function
_rgui_set_pixel_format_function:        ## @rgui_set_pixel_format_function
	.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
	xorl	%eax, %eax
	callq	_video_driver_get_ident
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	movq	_argb32_to_rgba4444@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_argb32_to_abgr1555@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_argb32_to_rgb5a3@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_argb32_to_abgr4444@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_string_is_equal
	movq	_argb32_to_bgra4444@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_argb32_to_bgra4444@GOTPCREL(%rip), %rbx
LBB0_12:
	movl	(%rbx), %eax
	movq	_argb32_to_pixel_platform_format@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_argb32_to_rgba4444,4,2         ## @argb32_to_rgba4444
	.comm	_argb32_to_pixel_platform_format,4,2 ## @argb32_to_pixel_platform_format
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ps2"

	.comm	_argb32_to_abgr1555,4,2         ## @argb32_to_abgr1555
L_.str.1:                               ## @.str.1
	.asciz	"gx"

	.comm	_argb32_to_rgb5a3,4,2           ## @argb32_to_rgb5a3
L_.str.2:                               ## @.str.2
	.asciz	"psp1"

	.comm	_argb32_to_abgr4444,4,2         ## @argb32_to_abgr4444
L_.str.3:                               ## @.str.3
	.asciz	"d3d10"

L_.str.4:                               ## @.str.4
	.asciz	"d3d11"

L_.str.5:                               ## @.str.5
	.asciz	"d3d12"

	.comm	_argb32_to_bgra4444,4,2         ## @argb32_to_bgra4444
	.no_dead_strip	_rgui_set_pixel_format_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgui_set_pixel_format_function
_rgui_set_pixel_format_function:        ; @rgui_set_pixel_format_function
	.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
	bl	_video_driver_get_ident
	mov	x19, x0
	bl	_string_is_empty
Lloh0:
	adrp	x20, _argb32_to_rgba4444@GOTPAGE
Lloh1:
	ldr	x20, [x20, _argb32_to_rgba4444@GOTPAGEOFF]
	mov	x21, x20
	cbnz	x0, LBB0_11
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_string_is_equal
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x21, _argb32_to_abgr1555@GOTPAGE
Lloh5:
	ldr	x21, [x21, _argb32_to_abgr1555@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_string_is_equal
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x21, _argb32_to_rgb5a3@GOTPAGE
Lloh9:
	ldr	x21, [x21, _argb32_to_rgb5a3@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_string_is_equal
	cbz	x0, LBB0_7
; %bb.6:
Lloh12:
	adrp	x21, _argb32_to_abgr4444@GOTPAGE
Lloh13:
	ldr	x21, [x21, _argb32_to_abgr4444@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_string_is_equal
	cbz	x0, LBB0_9
; %bb.8:
Lloh16:
	adrp	x21, _argb32_to_bgra4444@GOTPAGE
Lloh17:
	ldr	x21, [x21, _argb32_to_bgra4444@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_string_is_equal
Lloh20:
	adrp	x21, _argb32_to_bgra4444@GOTPAGE
Lloh21:
	ldr	x21, [x21, _argb32_to_bgra4444@GOTPAGEOFF]
	cbnz	x0, LBB0_11
; %bb.10:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_string_is_equal
	cmp	x0, #0
	csel	x21, x20, x21, eq
LBB0_11:
	ldr	w8, [x21]
Lloh24:
	adrp	x9, _argb32_to_pixel_platform_format@GOTPAGE
Lloh25:
	ldr	x9, [x9, _argb32_to_pixel_platform_format@GOTPAGEOFF]
Lloh26:
	str	w8, [x9]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_argb32_to_rgba4444,4,2         ; @argb32_to_rgba4444
	.comm	_argb32_to_pixel_platform_format,4,2 ; @argb32_to_pixel_platform_format
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ps2"

	.comm	_argb32_to_abgr1555,4,2         ; @argb32_to_abgr1555
l_.str.1:                               ; @.str.1
	.asciz	"gx"

	.comm	_argb32_to_rgb5a3,4,2           ; @argb32_to_rgb5a3
l_.str.2:                               ; @.str.2
	.asciz	"psp1"

	.comm	_argb32_to_abgr4444,4,2         ; @argb32_to_abgr4444
l_.str.3:                               ; @.str.3
	.asciz	"d3d10"

l_.str.4:                               ; @.str.4
	.asciz	"d3d11"

l_.str.5:                               ; @.str.5
	.asciz	"d3d12"

	.comm	_argb32_to_bgra4444,4,2         ; @argb32_to_bgra4444
	.no_dead_strip	_rgui_set_pixel_format_function
.subsections_via_symbols
