	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_ocotp_devmap
_fsl_ocotp_devmap:                      ## @fsl_ocotp_devmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_fdt_depth_search_compatible
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	-16(%rbp), %rsi
	leaq	-8(%rbp), %rdx
	movl	%eax, %edi
	callq	_fdt_regsize
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	-8(%rbp), %rsi
	movq	_ocotp_size@GOTPCREL(%rip), %rax
	movq	%rsi, (%rax)
	movl	-16(%rbp), %edi
	callq	_pmap_mapdev
	movq	_ocotp_regs@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_panic
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.asciz	"fsl,imx6q-ocotp"

	.comm	_ocotp_size,8,3                 ## @ocotp_size
	.comm	_ocotp_regs,8,3                 ## @ocotp_regs
L_.str.2:                               ## @.str.2
	.asciz	"cannot find/map the ocotp registers"

	.no_dead_strip	_fsl_ocotp_devmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_ocotp_devmap
_fsl_ocotp_devmap:                      ; @fsl_ocotp_devmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #0
	bl	_fdt_depth_search_compatible
	cbz	w0, LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	x2, sp
	bl	_fdt_regsize
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x1, [sp]
Lloh4:
	adrp	x8, _ocotp_size@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ocotp_size@GOTPAGEOFF]
Lloh6:
	str	x1, [x8]
	ldr	w0, [sp, #8]
	bl	_pmap_mapdev
Lloh7:
	adrp	x8, _ocotp_regs@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ocotp_regs@GOTPAGEOFF]
Lloh9:
	str	x0, [x8]
	cbnz	x0, LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.asciz	"fsl,imx6q-ocotp"

	.comm	_ocotp_size,8,3                 ; @ocotp_size
	.comm	_ocotp_regs,8,3                 ; @ocotp_regs
l_.str.2:                               ; @.str.2
	.asciz	"cannot find/map the ocotp registers"

	.no_dead_strip	_fsl_ocotp_devmap
.subsections_via_symbols
