	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venus_hwversion
_venus_hwversion:                       ## @venus_hwversion
	.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), %rax
	movq	(%rax), %r14
	movq	_WRAPPER_HW_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_venus_readl
	movq	_WRAPPER_HW_VERSION_MAJOR_VERSION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	%eax, %r15d
	movq	_WRAPPER_HW_VERSION_MAJOR_VERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r15d
	movq	_WRAPPER_HW_VERSION_MINOR_VERSION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	movq	_WRAPPER_HW_VERSION_MINOR_VERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	movq	_WRAPPER_HW_VERSION_STEP_VERSION_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_dev_dbg
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRAPPER_HW_VERSION,4,2         ## @WRAPPER_HW_VERSION
	.comm	_WRAPPER_HW_VERSION_MAJOR_VERSION_MASK,4,2 ## @WRAPPER_HW_VERSION_MAJOR_VERSION_MASK
	.comm	_WRAPPER_HW_VERSION_MAJOR_VERSION_SHIFT,4,2 ## @WRAPPER_HW_VERSION_MAJOR_VERSION_SHIFT
	.comm	_WRAPPER_HW_VERSION_MINOR_VERSION_MASK,4,2 ## @WRAPPER_HW_VERSION_MINOR_VERSION_MASK
	.comm	_WRAPPER_HW_VERSION_MINOR_VERSION_SHIFT,4,2 ## @WRAPPER_HW_VERSION_MINOR_VERSION_SHIFT
	.comm	_WRAPPER_HW_VERSION_STEP_VERSION_MASK,4,2 ## @WRAPPER_HW_VERSION_STEP_VERSION_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"venus hw version %x.%x.%x\n"

	.no_dead_strip	_venus_hwversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venus_hwversion
_venus_hwversion:                       ; @venus_hwversion
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _WRAPPER_HW_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRAPPER_HW_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_venus_readl
Lloh3:
	adrp	x8, _WRAPPER_HW_VERSION_MAJOR_VERSION_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WRAPPER_HW_VERSION_MAJOR_VERSION_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _WRAPPER_HW_VERSION_MAJOR_VERSION_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WRAPPER_HW_VERSION_MAJOR_VERSION_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w20, w8, w9
Lloh9:
	adrp	x8, _WRAPPER_HW_VERSION_MINOR_VERSION_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WRAPPER_HW_VERSION_MINOR_VERSION_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _WRAPPER_HW_VERSION_MINOR_VERSION_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WRAPPER_HW_VERSION_MINOR_VERSION_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w3, w8, w9
Lloh15:
	adrp	x8, _WRAPPER_HW_VERSION_STEP_VERSION_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WRAPPER_HW_VERSION_STEP_VERSION_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w4, w8, w0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WRAPPER_HW_VERSION,4,2         ; @WRAPPER_HW_VERSION
	.comm	_WRAPPER_HW_VERSION_MAJOR_VERSION_MASK,4,2 ; @WRAPPER_HW_VERSION_MAJOR_VERSION_MASK
	.comm	_WRAPPER_HW_VERSION_MAJOR_VERSION_SHIFT,4,2 ; @WRAPPER_HW_VERSION_MAJOR_VERSION_SHIFT
	.comm	_WRAPPER_HW_VERSION_MINOR_VERSION_MASK,4,2 ; @WRAPPER_HW_VERSION_MINOR_VERSION_MASK
	.comm	_WRAPPER_HW_VERSION_MINOR_VERSION_SHIFT,4,2 ; @WRAPPER_HW_VERSION_MINOR_VERSION_SHIFT
	.comm	_WRAPPER_HW_VERSION_STEP_VERSION_MASK,4,2 ; @WRAPPER_HW_VERSION_STEP_VERSION_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"venus hw version %x.%x.%x\n"

	.no_dead_strip	_venus_hwversion
.subsections_via_symbols
