	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcr_set
_pcr_set:                               ## @pcr_set
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	callq	_device_get_softc
	movq	_SCOM_PCR_BIT@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movl	(%rbx), %ecx
	cmpl	$2500, %ecx                     ## imm = 0x9C4
	je	LBB0_7
## %bb.3:
	cmpl	$5000, %ecx                     ## imm = 0x1388
	je	LBB0_6
## %bb.4:
	cmpl	$10000, %ecx                    ## imm = 0x2710
	jne	LBB0_9
## %bb.5:
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	movq	(%rax), %rax
	addq	$8, %rax
	jmp	LBB0_8
LBB0_6:
	movq	(%rax), %rax
	addq	$4, %rax
LBB0_8:
	orl	(%rax), %r14d
LBB0_9:
	xorl	%eax, %eax
	callq	_mfmsr
	movl	%eax, %r12d
	movq	_PSL_EE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%r12d, %edi
	callq	_mtmsr
	xorl	%eax, %eax
	callq	_isync
	movq	_SCOM_PCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_write_scom
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_write_scom
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_write_scom
	movq	_SCOM_PSR@GOTPCREL(%rip), %r14
	movq	_PSR_RECEIVED@GOTPCREL(%rip), %rbx
	movq	_PSR_COMPLETED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_DELAY
	movl	(%r14), %edi
	callq	_read_scom
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%eax, (%r15)
	je	LBB0_10
LBB0_12:
	movl	%r12d, %edi
	callq	_mtmsr
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_isync
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCOM_PCR_BIT,4,2               ## @SCOM_PCR_BIT
	.comm	_PSL_EE,4,2                     ## @PSL_EE
	.comm	_SCOM_PCR,4,2                   ## @SCOM_PCR
	.comm	_SCOM_PSR,4,2                   ## @SCOM_PSR
	.comm	_PSR_RECEIVED,4,2               ## @PSR_RECEIVED
	.comm	_PSR_COMPLETED,4,2              ## @PSR_COMPLETED
	.no_dead_strip	_pcr_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcr_set
_pcr_set:                               ; @pcr_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x20, x1
	bl	_device_get_softc
Lloh0:
	adrp	x21, _SCOM_PCR_BIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SCOM_PCR_BIT@GOTPAGEOFF]
	ldr	w19, [x21]
	ldr	w8, [x20]
	cmp	w8, #2500
	b.eq	LBB0_6
; %bb.2:
	mov	w9, #5000
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.3:
	mov	w9, #10000
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x0]
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_6:
	ldr	x8, [x0]
	add	x8, x8, #8
	b	LBB0_8
LBB0_7:
	ldr	x8, [x0]
	add	x8, x8, #4
LBB0_8:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_9:
	bl	_mfmsr
	mov	x20, x0
Lloh5:
	adrp	x8, _PSL_EE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PSL_EE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w0, w0, w8
	bl	_mtmsr
	bl	_isync
Lloh8:
	adrp	x22, _SCOM_PCR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SCOM_PCR@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	bl	_write_scom
	ldr	w0, [x22]
	ldr	w1, [x21]
	bl	_write_scom
	ldr	w0, [x22]
	mov	x1, x19
	bl	_write_scom
Lloh10:
	adrp	x19, _SCOM_PSR@GOTPAGE
Lloh11:
	ldr	x19, [x19, _SCOM_PSR@GOTPAGEOFF]
Lloh12:
	adrp	x21, _PSR_RECEIVED@GOTPAGE
Lloh13:
	ldr	x21, [x21, _PSR_RECEIVED@GOTPAGEOFF]
Lloh14:
	adrp	x22, _PSR_COMPLETED@GOTPAGE
Lloh15:
	ldr	x22, [x22, _PSR_COMPLETED@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_DELAY
	ldr	w0, [x19]
	bl	_read_scom
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_10
LBB0_12:
	mov	x0, x20
	bl	_mtmsr
	bl	_isync
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCOM_PCR_BIT,4,2               ; @SCOM_PCR_BIT
	.comm	_PSL_EE,4,2                     ; @PSL_EE
	.comm	_SCOM_PCR,4,2                   ; @SCOM_PCR
	.comm	_SCOM_PSR,4,2                   ; @SCOM_PSR
	.comm	_PSR_RECEIVED,4,2               ; @PSR_RECEIVED
	.comm	_PSR_COMPLETED,4,2              ; @PSR_COMPLETED
	.no_dead_strip	_pcr_set
.subsections_via_symbols
