	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_efuse_probe
_sc27xx_efuse_probe:                    ## @sc27xx_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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, -48(%rbp)
	movups	%xmm0, -64(%rbp)
	movups	%xmm0, -80(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 24(%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	leaq	20(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_of_hwspin_lock_get_id
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:
	movl	%ebx, %edi
	callq	_hwspin_lock_request_specific
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%r15, 8(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -88(%rbp)
	movl	$1, -80(%rbp)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -72(%rbp)
	movq	_SC27XX_EFUSE_BLOCK_MAX@GOTPCREL(%rip), %rax
	movq	_SC27XX_EFUSE_BLOCK_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	movl	%ecx, -64(%rbp)
	movq	_sc27xx_efuse_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%r14, -48(%rbp)
	movq	%r15, -56(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_devm_nvmem_register
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	(%r14), %edi
	callq	_hwspin_lock_free
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get efuse regmap\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get efuse base address\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get hwspinlock id\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to request hwspinlock\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.5:                               ## @.str.5
	.asciz	"sc27xx-efuse"

	.comm	_SC27XX_EFUSE_BLOCK_MAX,4,2     ## @SC27XX_EFUSE_BLOCK_MAX
	.comm	_SC27XX_EFUSE_BLOCK_WIDTH,4,2   ## @SC27XX_EFUSE_BLOCK_WIDTH
	.comm	_sc27xx_efuse_read,4,2          ## @sc27xx_efuse_read
L_.str.6:                               ## @.str.6
	.asciz	"failed to register nvmem config\n"

	.no_dead_strip	_sc27xx_efuse_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_efuse_probe
_sc27xx_efuse_probe:                    ; @sc27xx_efuse_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x22, [x0, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stur	q0, [sp, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x20, #24]
	cbz	w0, LBB0_6
; %bb.2:
	add	x2, x20, #20
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_9
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	mov	x0, x22
	mov	w1, #0
	bl	_of_hwspin_lock_get_id
	mov	x21, x0
	tbnz	w0, #31, LBB0_13
; %bb.10:
	mov	x0, x21
	bl	_hwspin_lock_request_specific
	str	w0, [x20]
	cbz	w0, LBB0_14
; %bb.11:
	add	x0, x20, #16
	bl	_mutex_init
	str	x19, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	movi.2s	v0, #1
	str	d0, [sp, #8]
	mov	w8, #1
	str	w8, [sp, #16]
Lloh13:
	adrp	x8, l_.str.5@PAGE
Lloh14:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp, #24]
Lloh15:
	adrp	x8, _SC27XX_EFUSE_BLOCK_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SC27XX_EFUSE_BLOCK_MAX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SC27XX_EFUSE_BLOCK_WIDTH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SC27XX_EFUSE_BLOCK_WIDTH@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	mul	w8, w9, w8
	str	w8, [sp, #32]
Lloh21:
	adrp	x8, _sc27xx_efuse_read@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sc27xx_efuse_read@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	stp	x19, x20, [sp, #40]
	add	x1, sp, #8
	mov	x0, x19
	bl	_devm_nvmem_register
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.12:
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	bl	_hwspin_lock_free
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_8
LBB0_13:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_14:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh30:
	adrp	x8, _ENXIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_15:
	mov	w21, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get efuse regmap\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get efuse base address\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get hwspinlock id\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to request hwspinlock\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.5:                               ; @.str.5
	.asciz	"sc27xx-efuse"

	.comm	_SC27XX_EFUSE_BLOCK_MAX,4,2     ; @SC27XX_EFUSE_BLOCK_MAX
	.comm	_SC27XX_EFUSE_BLOCK_WIDTH,4,2   ; @SC27XX_EFUSE_BLOCK_WIDTH
	.comm	_sc27xx_efuse_read,4,2          ; @sc27xx_efuse_read
l_.str.6:                               ; @.str.6
	.asciz	"failed to register nvmem config\n"

	.no_dead_strip	_sc27xx_efuse_probe
.subsections_via_symbols
