	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_ctrl                        ## -- Begin function UI_ctrl
	.p2align	4, 0x90
_UI_ctrl:                               ## @UI_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	cmpl	$129, %esi
	je	LBB0_5
## %bb.3:
	cmpl	$128, %esi
	jne	LBB0_6
## %bb.4:
	movl	(%rdi), %r8d
	movq	_UI_FLAG_PRINT_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	testl	%r8d, %esi
	setne	%al
	movl	%esi, %ecx
	notl	%ecx
	andl	%r8d, %ecx
	orl	%r8d, %esi
	testq	%rdx, %rdx
	cmovel	%ecx, %esi
	movl	%esi, (%rdi)
	popq	%rbp
	retq
LBB0_1:
	movq	_UI_F_UI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_PASSED_NULL_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_UI_FLAG_REDOABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	setne	%al
	popq	%rbp
	retq
LBB0_6:
	movq	_UI_F_UI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UI_R_UNKNOWN_CONTROL_COMMAND@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_UIerr
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UI_F_UI_CTRL,4,2               ## @UI_F_UI_CTRL
	.comm	_ERR_R_PASSED_NULL_PARAMETER,4,2 ## @ERR_R_PASSED_NULL_PARAMETER
	.comm	_UI_FLAG_PRINT_ERRORS,4,2       ## @UI_FLAG_PRINT_ERRORS
	.comm	_UI_FLAG_REDOABLE,4,2           ## @UI_FLAG_REDOABLE
	.comm	_UI_R_UNKNOWN_CONTROL_COMMAND,4,2 ## @UI_R_UNKNOWN_CONTROL_COMMAND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_ctrl                        ; -- Begin function UI_ctrl
	.p2align	2
_UI_ctrl:                               ; @UI_ctrl
	.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
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _UI_FLAG_PRINT_ERRORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UI_FLAG_PRINT_ERRORS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	tst	w10, w9
	cset	w8, ne
	bic	w11, w9, w10
	orr	w9, w10, w9
	cmp	x2, #0
	csel	w9, w11, w9, eq
	str	w9, [x0]
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _UI_F_UI_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UI_F_UI_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_PASSED_NULL_PARAMETER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_PASSED_NULL_PARAMETER@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x0]
Lloh8:
	adrp	x9, _UI_FLAG_REDOABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UI_FLAG_REDOABLE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _UI_F_UI_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UI_F_UI_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _UI_R_UNKNOWN_CONTROL_COMMAND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UI_R_UNKNOWN_CONTROL_COMMAND@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	bl	_UIerr
	mov	w8, #-1
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_UI_F_UI_CTRL,4,2               ; @UI_F_UI_CTRL
	.comm	_ERR_R_PASSED_NULL_PARAMETER,4,2 ; @ERR_R_PASSED_NULL_PARAMETER
	.comm	_UI_FLAG_PRINT_ERRORS,4,2       ; @UI_FLAG_PRINT_ERRORS
	.comm	_UI_FLAG_REDOABLE,4,2           ; @UI_FLAG_REDOABLE
	.comm	_UI_R_UNKNOWN_CONTROL_COMMAND,4,2 ; @UI_R_UNKNOWN_CONTROL_COMMAND
.subsections_via_symbols
