	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_uvis25_check_whoami
_st_uvis25_check_whoami:                ## @st_uvis25_check_whoami
	.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
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_ST_UVIS25_REG_WHOAMI_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-28(%rbp), %eax
	movq	_ST_UVIS25_REG_WHOAMI_VAL@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	cmpl	(%r15), %eax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_regmap_get_device
	movl	-28(%rbp), %edx
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_regmap_get_device
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_UVIS25_REG_WHOAMI_ADDR,4,2  ## @ST_UVIS25_REG_WHOAMI_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read whoami register\n"

	.comm	_ST_UVIS25_REG_WHOAMI_VAL,4,2   ## @ST_UVIS25_REG_WHOAMI_VAL
L_.str.1:                               ## @.str.1
	.asciz	"wrong whoami {%02x vs %02x}\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_st_uvis25_check_whoami
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_uvis25_check_whoami
_st_uvis25_check_whoami:                ; @st_uvis25_check_whoami
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _ST_UVIS25_REG_WHOAMI_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_UVIS25_REG_WHOAMI_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldur	w8, [x29, #-20]
Lloh3:
	adrp	x19, _ST_UVIS25_REG_WHOAMI_VAL@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ST_UVIS25_REG_WHOAMI_VAL@GOTPAGEOFF]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	mov	w19, #0
	b	LBB0_5
LBB0_3:
	mov	x19, x0
	ldr	w0, [x20]
	bl	_regmap_get_device
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
	bl	_regmap_get_device
	ldur	w8, [x29, #-20]
	ldr	w9, [x19]
	stp	x8, x9, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_UVIS25_REG_WHOAMI_ADDR,4,2  ; @ST_UVIS25_REG_WHOAMI_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read whoami register\n"

	.comm	_ST_UVIS25_REG_WHOAMI_VAL,4,2   ; @ST_UVIS25_REG_WHOAMI_VAL
l_.str.1:                               ; @.str.1
	.asciz	"wrong whoami {%02x vs %02x}\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_st_uvis25_check_whoami
.subsections_via_symbols
