	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tui_get_register
_tui_get_register:                      ## @tui_get_register
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TUI_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movq	_target_has_registers@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.3:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_MAX_REGISTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_get_frame_register
	movl	%r13d, %edi
	callq	_register_cached
	testq	%rax, %rax
	js	LBB0_20
## %bb.4:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_register_size
	testl	%eax, %eax
	jle	LBB0_17
## %bb.6:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%eax, %r8d
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
LBB0_14:
	testb	$1, %r8b
	je	LBB0_17
## %bb.15:
	movb	(%r14,%rax), %dl
	cmpb	(%rcx,%rax), %dl
	je	LBB0_17
## %bb.16:
	movq	_TRUE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, (%rbx)
	movb	%dl, (%rcx,%rax)
LBB0_17:
	movl	(%rbx), %eax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
LBB0_18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_tui_register_format
LBB0_19:
	movq	_TUI_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_20:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%eax, %eax
	movq	_TRUE@GOTPCREL(%rip), %r9
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rsi
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rax), %edx
	cmpb	(%rcx,%rax), %dl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r9), %edi
	movl	%edi, (%rbx)
	movb	%dl, (%rcx,%rax)
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movzbl	1(%r14,%rax), %edx
	cmpb	1(%rcx,%rax), %dl
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r9), %edi
	movl	%edi, (%rbx)
	movb	%dl, 1(%rcx,%rax)
	jmp	LBB0_13
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TUI_FAILURE,4,2                ## @TUI_FAILURE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_target_has_registers,8,3       ## @target_has_registers
	.comm	_MAX_REGISTER_SIZE,4,2          ## @MAX_REGISTER_SIZE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_TUI_SUCCESS,4,2                ## @TUI_SUCCESS
	.no_dead_strip	_tui_get_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tui_get_register
_tui_get_register:                      ; @tui_get_register
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _TUI_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TUI_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	cbz	x4, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x23]
LBB0_2:
Lloh9:
	adrp	x8, _target_has_registers@GOTPAGE
Lloh10:
	ldr	x8, [x8, _target_has_registers@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.3:
	mov	x26, sp
Lloh12:
	adrp	x8, _MAX_REGISTER_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_REGISTER_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_get_frame_register
	mov	x0, x19
	bl	_register_cached
	tbnz	x0, #63, LBB0_13
; %bb.4:
	cbz	x23, LBB0_11
; %bb.5:
	mov	x0, x22
	mov	x1, x19
	bl	_register_size
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.6:
	ldr	x9, [x20]
	mov	w10, w0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	add	x24, x24, #1
	subs	x10, x10, #1
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x24]
	ldrb	w12, [x9]
	cmp	w11, w12
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x8]
	str	w12, [x23]
	strb	w11, [x9]
	b	LBB0_7
LBB0_10:
	ldr	w9, [x23]
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_12
LBB0_11:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_tui_register_format
LBB0_12:
Lloh19:
	adrp	x8, _TUI_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TUI_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	w25, [x8]
LBB0_13:
	mov	sp, x26
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x25
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_TUI_FAILURE,4,2                ; @TUI_FAILURE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_target_has_registers,8,3       ; @target_has_registers
	.comm	_MAX_REGISTER_SIZE,4,2          ; @MAX_REGISTER_SIZE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_TUI_SUCCESS,4,2                ; @TUI_SUCCESS
	.no_dead_strip	_tui_get_register
.subsections_via_symbols
