	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cim_la_open
_cim_la_open:                           ## @cim_la_open
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	_UP_UP_DBG_LA_CFG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_t4_cim_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	4(%r12), %edi
	callq	_is_t6
	movl	(%r12), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$34, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %esi
	incl	%esi
	movq	_UPDBGLACAPTPCONLY_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-36(%rbp), %eax
	jne	LBB0_3
## %bb.4:
	movq	_cim_la_show_t6@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	leal	7(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$3, %esi
	movq	_UPDBGLACAPTPCONLY_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-36(%rbp), %eax
	jne	LBB0_7
## %bb.8:
	movq	_cim_la_show@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_cim_la_show_pc_t6@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$40, %edx
	jmp	LBB0_10
LBB0_7:
	movq	_cim_la_show_3in1@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$32, %edx
LBB0_10:
	movl	$1, %ecx
	callq	_seq_open_tab
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	(%rax), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_t4_cim_read_la
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_seq_release_private
	movl	%r12d, %ebx
	jmp	LBB0_14
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_UP_UP_DBG_LA_CFG_A,4,2         ## @UP_UP_DBG_LA_CFG_A
	.comm	_UPDBGLACAPTPCONLY_F,4,2        ## @UPDBGLACAPTPCONLY_F
	.comm	_cim_la_show_pc_t6,4,2          ## @cim_la_show_pc_t6
	.comm	_cim_la_show_t6,4,2             ## @cim_la_show_t6
	.comm	_cim_la_show_3in1,4,2           ## @cim_la_show_3in1
	.comm	_cim_la_show,4,2                ## @cim_la_show
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_cim_la_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cim_la_open
_cim_la_open:                           ; @cim_la_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _UP_UP_DBG_LA_CFG_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UP_UP_DBG_LA_CFG_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	w2, #1
	bl	_t4_cim_read
	mov	x22, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	w0, [x21, #4]
	bl	_is_t6
	ldr	w8, [x21]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	add	w1, w8, #1
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _UPDBGLACAPTPCONLY_F@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UPDBGLACAPTPCONLY_F@GOTPAGEOFF]
Lloh5:
	adrp	x10, _cim_la_show_pc_t6@GOTPAGE
Lloh6:
	ldr	x10, [x10, _cim_la_show_pc_t6@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _cim_la_show_t6@GOTPAGE
Lloh9:
	ldr	x11, [x11, _cim_la_show_t6@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #40
	b	LBB0_5
LBB0_4:
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #3
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _UPDBGLACAPTPCONLY_F@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UPDBGLACAPTPCONLY_F@GOTPAGEOFF]
Lloh12:
	adrp	x10, _cim_la_show_3in1@GOTPAGE
Lloh13:
	ldr	x10, [x10, _cim_la_show_3in1@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x11, _cim_la_show@GOTPAGE
Lloh16:
	ldr	x11, [x11, _cim_la_show@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #32
LBB0_5:
	mov	w3, #1
	bl	_seq_open_tab
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x1, [x0]
	mov	x0, x21
	mov	x2, #0
	bl	_t4_cim_read_la
	mov	x22, x0
	cbz	w0, LBB0_1
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_seq_release_private
	b	LBB0_1
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_UP_UP_DBG_LA_CFG_A,4,2         ; @UP_UP_DBG_LA_CFG_A
	.comm	_UPDBGLACAPTPCONLY_F,4,2        ; @UPDBGLACAPTPCONLY_F
	.comm	_cim_la_show_pc_t6,4,2          ; @cim_la_show_pc_t6
	.comm	_cim_la_show_t6,4,2             ; @cim_la_show_t6
	.comm	_cim_la_show_3in1,4,2           ; @cim_la_show_3in1
	.comm	_cim_la_show,4,2                ; @cim_la_show
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_cim_la_open
.subsections_via_symbols
