	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_hsm_get
_ctrl_hsm_get:                          ## @ctrl_hsm_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_pvr2_hdw_is_hsm
	movq	_PVR2_CVAL_HSM_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	_PVR2_CVAL_HSM_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_3:
	movq	_PVR2_CVAL_HSM_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_CVAL_HSM_FULL,4,2         ## @PVR2_CVAL_HSM_FULL
	.comm	_PVR2_CVAL_HSM_FAIL,4,2         ## @PVR2_CVAL_HSM_FAIL
	.comm	_PVR2_CVAL_HSM_HIGH,4,2         ## @PVR2_CVAL_HSM_HIGH
	.no_dead_strip	_ctrl_hsm_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_hsm_get
_ctrl_hsm_get:                          ; @ctrl_hsm_get
	.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
	mov	x19, x1
	ldr	w0, [x0]
	bl	_pvr2_hdw_is_hsm
Lloh0:
	adrp	x8, _PVR2_CVAL_HSM_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_CVAL_HSM_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	tbnz	w0, #31, LBB0_2
; %bb.1:
	cbnz	w0, LBB0_3
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _PVR2_CVAL_HSM_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PVR2_CVAL_HSM_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
Lloh6:
	adrp	x8, _PVR2_CVAL_HSM_HIGH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PVR2_CVAL_HSM_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_CVAL_HSM_FULL,4,2         ; @PVR2_CVAL_HSM_FULL
	.comm	_PVR2_CVAL_HSM_FAIL,4,2         ; @PVR2_CVAL_HSM_FAIL
	.comm	_PVR2_CVAL_HSM_HIGH,4,2         ; @PVR2_CVAL_HSM_HIGH
	.no_dead_strip	_ctrl_hsm_get
.subsections_via_symbols
