	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_efuse_probe
_meson_efuse_probe:                     ## @meson_efuse_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	addl	(%rax), %ecx
	je	LBB0_13
## %bb.2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_6:
	movq	_clk_disable_unprepare@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SM_EFUSE_USER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$0, (%rsp)
	leaq	-28(%rbp), %rsi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_meson_sm_call
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	%r14, 24(%rax)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 20(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movq	_meson_efuse_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_meson_efuse_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	-28(%rbp), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_nvmem_register
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %r15d
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get efuse gate"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable gate"

	.comm	_clk_disable_unprepare,8,3      ## @clk_disable_unprepare
L_.str.2:                               ## @.str.2
	.asciz	"failed to add disable callback"

	.comm	_SM_EFUSE_USER_MAX,4,2          ## @SM_EFUSE_USER_MAX
L_.str.3:                               ## @.str.3
	.asciz	"failed to get max user"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_meson_efuse_read,4,2           ## @meson_efuse_read
	.comm	_meson_efuse_write,4,2          ## @meson_efuse_write
	.no_dead_strip	_meson_efuse_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_efuse_probe
_meson_efuse_probe:                     ; @meson_efuse_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	x1, #0
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
Lloh0:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
	mov	x0, x21
	bl	_clk_prepare_enable
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _clk_disable_unprepare@GOTPAGE
Lloh8:
	ldr	x8, [x8, _clk_disable_unprepare@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action_or_reset
	cbz	w0, LBB0_9
; %bb.6:
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
Lloh12:
	adrp	x8, _SM_EFUSE_USER_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SM_EFUSE_USER_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_meson_sm_call
	tbnz	x0, #63, LBB0_12
; %bb.10:
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.11:
	mov	x20, x0
	str	x19, [x0, #24]
	mov	x0, x19
	bl	_dev_name
	movi.2s	v0, #1
	str	d0, [x20]
Lloh18:
	adrp	x8, _meson_efuse_read@GOTPAGE
Lloh19:
	ldr	x8, [x8, _meson_efuse_read@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #16]
Lloh21:
	adrp	x8, _meson_efuse_write@GOTPAGE
Lloh22:
	ldr	x8, [x8, _meson_efuse_write@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	stp	w9, w8, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_nvmem_register
	bl	_PTR_ERR_OR_ZERO
	mov	x20, x0
	b	LBB0_8
LBB0_12:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get efuse gate"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable gate"

	.comm	_clk_disable_unprepare,8,3      ; @clk_disable_unprepare
l_.str.2:                               ; @.str.2
	.asciz	"failed to add disable callback"

	.comm	_SM_EFUSE_USER_MAX,4,2          ; @SM_EFUSE_USER_MAX
l_.str.3:                               ; @.str.3
	.asciz	"failed to get max user"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_meson_efuse_read,4,2           ; @meson_efuse_read
	.comm	_meson_efuse_write,4,2          ; @meson_efuse_write
	.no_dead_strip	_meson_efuse_probe
.subsections_via_symbols
