	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_get_tsi_result
_da9052_get_tsi_result:                 ## @da9052_get_tsi_result
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%rdi), %r15d
	movq	_DA9052_TSI_X_MSB_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-52(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_da9052_group_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	leal	-128(%r14), %eax
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.2:
	addl	$-130, %r14d
	cmpl	$1, %r14d
	ja	LBB0_4
## %bb.3:
	movq	_DA9052_TSILSB_TSIXL_SHIFT@GOTPCREL(%rip), %rdx
	movq	_DA9052_TSILSB_TSIXL@GOTPCREL(%rip), %rax
	movq	_DA9052_TSILSB_TSIXL_BITS@GOTPCREL(%rip), %rcx
	movl	-52(%rbp), %esi
	jmp	LBB0_6
LBB0_5:
	movq	_DA9052_TSILSB_TSIYL_SHIFT@GOTPCREL(%rip), %rdx
	movq	_DA9052_TSILSB_TSIYL@GOTPCREL(%rip), %rax
	movq	_DA9052_TSILSB_TSIYL_BITS@GOTPCREL(%rip), %rcx
	movl	-48(%rbp), %esi
LBB0_6:
	movb	(%rcx), %cl
	shll	%cl, %esi
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movb	(%rdx), %cl
	sarl	%cl, %eax
	orl	%esi, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9052_TSI_X_MSB_REG,4,2       ## @DA9052_TSI_X_MSB_REG
	.comm	_DA9052_TSILSB_TSIXL_BITS,4,2   ## @DA9052_TSILSB_TSIXL_BITS
	.comm	_DA9052_TSILSB_TSIXL,4,2        ## @DA9052_TSILSB_TSIXL
	.comm	_DA9052_TSILSB_TSIXL_SHIFT,4,2  ## @DA9052_TSILSB_TSIXL_SHIFT
	.comm	_DA9052_TSILSB_TSIYL_BITS,4,2   ## @DA9052_TSILSB_TSIYL_BITS
	.comm	_DA9052_TSILSB_TSIYL,4,2        ## @DA9052_TSILSB_TSIYL
	.comm	_DA9052_TSILSB_TSIYL_SHIFT,4,2  ## @DA9052_TSILSB_TSIYL_SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_da9052_get_tsi_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_get_tsi_result
_da9052_get_tsi_result:                 ; @da9052_get_tsi_result
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w20, [x0]
Lloh3:
	adrp	x8, _DA9052_TSI_X_MSB_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9052_TSI_X_MSB_REG@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	add	x0, sp, #12
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_da9052_group_read
	cbnz	w0, LBB0_6
; %bb.1:
	sub	w8, w19, #128
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.2:
	sub	w8, w19, #130
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _DA9052_TSILSB_TSIXL_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DA9052_TSILSB_TSIXL_SHIFT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DA9052_TSILSB_TSIXL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DA9052_TSILSB_TSIXL@GOTPAGEOFF]
Lloh10:
	adrp	x10, _DA9052_TSILSB_TSIXL_BITS@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DA9052_TSILSB_TSIXL_BITS@GOTPAGEOFF]
	ldr	w11, [sp, #12]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _DA9052_TSILSB_TSIYL_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DA9052_TSILSB_TSIYL_SHIFT@GOTPAGEOFF]
Lloh14:
	adrp	x9, _DA9052_TSILSB_TSIYL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DA9052_TSILSB_TSIYL@GOTPAGEOFF]
Lloh16:
	adrp	x10, _DA9052_TSILSB_TSIYL_BITS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DA9052_TSILSB_TSIYL_BITS@GOTPAGEOFF]
	ldr	w11, [sp, #16]
LBB0_5:
	ldr	w10, [x10]
	lsl	w10, w11, w10
	ldr	w11, [sp, #20]
	ldr	w9, [x9]
	and	w9, w9, w11
	ldr	w8, [x8]
	asr	w8, w9, w8
	orr	w0, w8, w10
LBB0_6:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9052_TSI_X_MSB_REG,4,2       ; @DA9052_TSI_X_MSB_REG
	.comm	_DA9052_TSILSB_TSIXL_BITS,4,2   ; @DA9052_TSILSB_TSIXL_BITS
	.comm	_DA9052_TSILSB_TSIXL,4,2        ; @DA9052_TSILSB_TSIXL
	.comm	_DA9052_TSILSB_TSIXL_SHIFT,4,2  ; @DA9052_TSILSB_TSIXL_SHIFT
	.comm	_DA9052_TSILSB_TSIYL_BITS,4,2   ; @DA9052_TSILSB_TSIYL_BITS
	.comm	_DA9052_TSILSB_TSIYL,4,2        ; @DA9052_TSILSB_TSIYL
	.comm	_DA9052_TSILSB_TSIYL_SHIFT,4,2  ; @DA9052_TSILSB_TSIYL_SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_da9052_get_tsi_result
.subsections_via_symbols
