	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_input_ctx_new              ## -- Begin function x11_input_ctx_new
	.p2align	4, 0x90
_x11_input_ctx_new:                     ## @x11_input_ctx_new
	.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
	movl	%edi, %r15d
	movq	_g_x11_dpy@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_g_x11_win@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_g_x11_xim@GOTPCREL(%rip), %rdx
	movq	_g_x11_xic@GOTPCREL(%rip), %rcx
	callq	_x11_create_input_context
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_RARCH_DISPLAY_X11@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_video_driver_display_type_set
	movq	(%rbx), %rdi
	callq	_video_driver_display_set
	movq	(%r14), %rdi
	callq	_video_driver_window_set
	movq	_g_x11_true_full@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_x11_dpy,8,3                  ## @g_x11_dpy
	.comm	_g_x11_win,8,3                  ## @g_x11_win
	.comm	_g_x11_xim,4,2                  ## @g_x11_xim
	.comm	_g_x11_xic,4,2                  ## @g_x11_xic
	.comm	_RARCH_DISPLAY_X11,4,2          ## @RARCH_DISPLAY_X11
	.comm	_g_x11_true_full,4,2            ## @g_x11_true_full
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_input_ctx_new              ; -- Begin function x11_input_ctx_new
	.p2align	2
_x11_input_ctx_new:                     ; @x11_input_ctx_new
	.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, x0
Lloh0:
	adrp	x21, _g_x11_dpy@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g_x11_dpy@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh2:
	adrp	x20, _g_x11_win@GOTPAGE
Lloh3:
	ldr	x20, [x20, _g_x11_win@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh4:
	adrp	x2, _g_x11_xim@GOTPAGE
Lloh5:
	ldr	x2, [x2, _g_x11_xim@GOTPAGEOFF]
Lloh6:
	adrp	x3, _g_x11_xic@GOTPAGE
Lloh7:
	ldr	x3, [x3, _g_x11_xic@GOTPAGEOFF]
	bl	_x11_create_input_context
	cbz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _RARCH_DISPLAY_X11@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RARCH_DISPLAY_X11@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_video_driver_display_type_set
	ldr	x0, [x21]
	bl	_video_driver_display_set
	ldr	x0, [x20]
	bl	_video_driver_window_set
Lloh11:
	adrp	x8, _g_x11_true_full@GOTPAGE
Lloh12:
	ldr	x8, [x8, _g_x11_true_full@GOTPAGEOFF]
Lloh13:
	str	w19, [x8]
	mov	w0, #1
LBB0_2:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_g_x11_dpy,8,3                  ; @g_x11_dpy
	.comm	_g_x11_win,8,3                  ; @g_x11_win
	.comm	_g_x11_xim,4,2                  ; @g_x11_xim
	.comm	_g_x11_xic,4,2                  ; @g_x11_xic
	.comm	_RARCH_DISPLAY_X11,4,2          ; @RARCH_DISPLAY_X11
	.comm	_g_x11_true_full,4,2            ; @g_x11_true_full
.subsections_via_symbols
