	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_create_input_context       ## -- Begin function x11_create_input_context
	.p2align	4, 0x90
_x11_create_input_context:              ## @x11_create_input_context
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	%rdx, %rdi
	movq	%rcx, %rsi
	callq	_x11_destroy_input_context
	movq	_g_x11_has_focus@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_XOpenIM
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_XNInputStyle@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_XIMPreeditNothing@GOTPCREL(%rip), %rcx
	movq	_XIMStatusNothing@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_XNClientWindow@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r12d, %r12d
	movl	%eax, %edi
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_XCreateIC
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %edi
	callq	_XSetICFocus
	movl	$1, %r12d
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_RARCH_ERR
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_x11_has_focus,4,2            ## @g_x11_has_focus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[X11]: Failed to open input method.\n"

	.comm	_XNInputStyle,4,2               ## @XNInputStyle
	.comm	_XIMPreeditNothing,4,2          ## @XIMPreeditNothing
	.comm	_XIMStatusNothing,4,2           ## @XIMStatusNothing
	.comm	_XNClientWindow,4,2             ## @XNClientWindow
L_.str.1:                               ## @.str.1
	.asciz	"[X11]: Failed to create input context.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_create_input_context       ; -- Begin function x11_create_input_context
	.p2align	2
_x11_create_input_context:              ; @x11_create_input_context
	.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	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x2
	mov	x1, x3
	bl	_x11_destroy_input_context
Lloh0:
	adrp	x8, _g_x11_has_focus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_x11_has_focus@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_XOpenIM
	str	w0, [x21]
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _XNInputStyle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XNInputStyle@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _XIMPreeditNothing@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XIMPreeditNothing@GOTPAGEOFF]
Lloh8:
	adrp	x9, _XIMStatusNothing@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XIMStatusNothing@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh12:
	adrp	x8, _XNClientWindow@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XNClientWindow@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x4, x20
	mov	x5, #0
	bl	_XCreateIC
	str	w0, [x19]
	cbz	w0, LBB0_4
; %bb.2:
	bl	_XSetICFocus
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_RARCH_ERR
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_g_x11_has_focus,4,2            ; @g_x11_has_focus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[X11]: Failed to open input method.\n"

	.comm	_XNInputStyle,4,2               ; @XNInputStyle
	.comm	_XIMPreeditNothing,4,2          ; @XIMPreeditNothing
	.comm	_XIMStatusNothing,4,2           ; @XIMStatusNothing
	.comm	_XNClientWindow,4,2             ; @XNClientWindow
l_.str.1:                               ; @.str.1
	.asciz	"[X11]: Failed to create input context.\n"

.subsections_via_symbols
