	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cryp_check                     ## -- Begin function cryp_check
	.p2align	4, 0x90
_cryp_check:                            ## @cryp_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	addq	$28, %rdi
	callq	_readl_relaxed
	movq	_CRYP_PERIPHERAL_ID2_DB8500@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.3:
	movq	_CRYP_PERIPHERAL_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	addq	$24, %rdi
	callq	_readl_relaxed
	cmpl	%eax, %r14d
	jne	LBB0_10
## %bb.4:
	movq	_CRYP_PERIPHERAL_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	addq	$20, %rdi
	callq	_readl_relaxed
	cmpl	%eax, %r14d
	jne	LBB0_10
## %bb.5:
	movq	_CRYP_PERIPHERAL_ID3@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_readl_relaxed
	cmpl	%eax, %r14d
	jne	LBB0_10
## %bb.6:
	movq	_CRYP_PCELL_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	addq	$12, %rdi
	callq	_readl_relaxed
	cmpl	%eax, %r14d
	jne	LBB0_10
## %bb.7:
	movq	_CRYP_PCELL_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_readl_relaxed
	cmpl	%eax, %r14d
	jne	LBB0_10
## %bb.8:
	movq	_CRYP_PCELL_ID2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_readl_relaxed
	cmpl	%eax, %r14d
	jne	LBB0_10
## %bb.9:
	movq	_CRYP_PCELL_ID3@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	callq	_readl_relaxed
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r14d
	je	LBB0_12
LBB0_10:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRYP_PERIPHERAL_ID2_DB8500,4,2 ## @CRYP_PERIPHERAL_ID2_DB8500
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_CRYP_PERIPHERAL_ID0,4,2        ## @CRYP_PERIPHERAL_ID0
	.comm	_CRYP_PERIPHERAL_ID1,4,2        ## @CRYP_PERIPHERAL_ID1
	.comm	_CRYP_PERIPHERAL_ID3,4,2        ## @CRYP_PERIPHERAL_ID3
	.comm	_CRYP_PCELL_ID0,4,2             ## @CRYP_PCELL_ID0
	.comm	_CRYP_PCELL_ID1,4,2             ## @CRYP_PCELL_ID1
	.comm	_CRYP_PCELL_ID2,4,2             ## @CRYP_PCELL_ID2
	.comm	_CRYP_PCELL_ID3,4,2             ## @CRYP_PCELL_ID3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cryp_check                     ; -- Begin function cryp_check
	.p2align	2
_cryp_check:                            ; @cryp_check
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	add	x0, x8, #28
	bl	_readl_relaxed
Lloh0:
	adrp	x8, _CRYP_PERIPHERAL_ID2_DB8500@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYP_PERIPHERAL_ID2_DB8500@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.2:
Lloh3:
	adrp	x8, _CRYP_PERIPHERAL_ID0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYP_PERIPHERAL_ID0@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldr	x8, [x19]
	add	x0, x8, #24
	bl	_readl_relaxed
	cmp	w20, w0
	b.ne	LBB0_10
; %bb.3:
Lloh6:
	adrp	x8, _CRYP_PERIPHERAL_ID1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRYP_PERIPHERAL_ID1@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	x8, [x19]
	add	x0, x8, #20
	bl	_readl_relaxed
	cmp	w20, w0
	b.ne	LBB0_10
; %bb.4:
Lloh9:
	adrp	x8, _CRYP_PERIPHERAL_ID3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CRYP_PERIPHERAL_ID3@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	ldr	x8, [x19]
	add	x0, x8, #16
	bl	_readl_relaxed
	cmp	w20, w0
	b.ne	LBB0_10
; %bb.5:
Lloh12:
	adrp	x8, _CRYP_PCELL_ID0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CRYP_PCELL_ID0@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	ldr	x8, [x19]
	add	x0, x8, #12
	bl	_readl_relaxed
	cmp	w20, w0
	b.ne	LBB0_10
; %bb.6:
Lloh15:
	adrp	x8, _CRYP_PCELL_ID1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CRYP_PCELL_ID1@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_readl_relaxed
	cmp	w20, w0
	b.ne	LBB0_10
; %bb.7:
Lloh18:
	adrp	x8, _CRYP_PCELL_ID2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CRYP_PCELL_ID2@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_readl_relaxed
	cmp	w20, w0
	b.ne	LBB0_10
; %bb.8:
Lloh21:
	adrp	x8, _CRYP_PCELL_ID3@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CRYP_PCELL_ID3@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	ldr	x0, [x19]
	bl	_readl_relaxed
	cmp	w20, w0
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh24:
	adrp	x8, _EPERM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRYP_PERIPHERAL_ID2_DB8500,4,2 ; @CRYP_PERIPHERAL_ID2_DB8500
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_CRYP_PERIPHERAL_ID0,4,2        ; @CRYP_PERIPHERAL_ID0
	.comm	_CRYP_PERIPHERAL_ID1,4,2        ; @CRYP_PERIPHERAL_ID1
	.comm	_CRYP_PERIPHERAL_ID3,4,2        ; @CRYP_PERIPHERAL_ID3
	.comm	_CRYP_PCELL_ID0,4,2             ; @CRYP_PCELL_ID0
	.comm	_CRYP_PCELL_ID1,4,2             ; @CRYP_PCELL_ID1
	.comm	_CRYP_PCELL_ID2,4,2             ; @CRYP_PCELL_ID2
	.comm	_CRYP_PCELL_ID3,4,2             ; @CRYP_PCELL_ID3
.subsections_via_symbols
