	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_efuse_read
_sc27xx_efuse_read:                     ## @sc27xx_efuse_read
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	_SC27XX_EFUSE_BLOCK_WIDTH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %r13
	movq	%rax, %r15
	cmpq	%rcx, %rsi
	jae	LBB0_4
	jmp	LBB0_5
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %r13d
	movl	%eax, %r15d
	cmpq	%rcx, %rsi
	jb	LBB0_5
LBB0_4:
	movq	_SC27XX_EFUSE_BLOCK_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	ja	LBB0_5
## %bb.6:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rax
	imulq	(%rax), %r13
	movq	%r12, %rdi
	callq	_sc27xx_efuse_lock
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movl	(%r12), %edi
	movq	_SC27XX_MODULE_EN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_SC27XX_EFUSE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_sc27xx_efuse_unlock
	jmp	LBB0_17
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_SC27XX_EFUSE_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sc27xx_efuse_poll_status
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movq	_SC27XX_EFUSE_BLOCK_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	(%r12), %edi
	movq	_SC27XX_EFUSE_BLOCK_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %r15
	movq	%r15, %rdx
	callq	_regmap_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movl	(%r12), %edi
	movq	_SC27XX_EFUSE_MODE_CTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	8(%r12), %rsi
	movq	_SC27XX_EFUSE_RD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	_SC27XX_EFUSE_RD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sc27xx_efuse_poll_status
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movl	(%r12), %edi
	movq	_SC27XX_EFUSE_DATA_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	(%r12), %edi
	movq	(%r15), %rsi
	addq	8(%r12), %rsi
	movq	_SC27XX_EFUSE_CLR_RDDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	%eax, %r14d
LBB0_15:
	movl	(%r12), %edi
	movq	(%rbx), %rsi
	movq	_SC27XX_EFUSE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	%r12, %rdi
	callq	_sc27xx_efuse_unlock
	testl	%r14d, %r14d
	jne	LBB0_17
## %bb.16:
	movl	%r13d, %ecx
	shrq	%cl, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SC27XX_EFUSE_BLOCK_WIDTH,8,3   ## @SC27XX_EFUSE_BLOCK_WIDTH
	.comm	_BITS_PER_BYTE,8,3              ## @BITS_PER_BYTE
	.comm	_SC27XX_EFUSE_BLOCK_MAX,8,3     ## @SC27XX_EFUSE_BLOCK_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SC27XX_MODULE_EN,8,3           ## @SC27XX_MODULE_EN
	.comm	_SC27XX_EFUSE_EN,4,2            ## @SC27XX_EFUSE_EN
	.comm	_SC27XX_EFUSE_STANDBY,4,2       ## @SC27XX_EFUSE_STANDBY
	.comm	_SC27XX_EFUSE_BLOCK_INDEX,8,3   ## @SC27XX_EFUSE_BLOCK_INDEX
	.comm	_SC27XX_EFUSE_BLOCK_MASK,8,3    ## @SC27XX_EFUSE_BLOCK_MASK
	.comm	_SC27XX_EFUSE_MODE_CTRL,8,3     ## @SC27XX_EFUSE_MODE_CTRL
	.comm	_SC27XX_EFUSE_RD_START,4,2      ## @SC27XX_EFUSE_RD_START
	.comm	_SC27XX_EFUSE_RD_DONE,4,2       ## @SC27XX_EFUSE_RD_DONE
	.comm	_SC27XX_EFUSE_DATA_RD,8,3       ## @SC27XX_EFUSE_DATA_RD
	.comm	_SC27XX_EFUSE_CLR_RDDONE,4,2    ## @SC27XX_EFUSE_CLR_RDDONE
	.no_dead_strip	_sc27xx_efuse_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_efuse_read
_sc27xx_efuse_read:                     ; @sc27xx_efuse_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _SC27XX_EFUSE_BLOCK_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC27XX_EFUSE_BLOCK_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	cmp	x24, x3
	b.lo	LBB0_5
; %bb.1:
	mov	x21, x1
	udiv	x25, x1, x24
Lloh3:
	adrp	x8, _SC27XX_EFUSE_BLOCK_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC27XX_EFUSE_BLOCK_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x25, x8
	b.hi	LBB0_5
; %bb.2:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x0
Lloh6:
	adrp	x8, _BITS_PER_BYTE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh8:
	ldr	x26, [x8]
	bl	_sc27xx_efuse_lock
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x22]
Lloh9:
	adrp	x27, _SC27XX_MODULE_EN@GOTPAGE
Lloh10:
	ldr	x27, [x27, _SC27XX_MODULE_EN@GOTPAGEOFF]
	ldr	x1, [x27]
Lloh11:
	adrp	x28, _SC27XX_EFUSE_EN@GOTPAGE
Lloh12:
	ldr	x28, [x28, _SC27XX_EFUSE_EN@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x3, x2
	bl	_regmap_update_bits
	cbz	w0, LBB0_7
; %bb.4:
	mov	x23, x0
	mov	x0, x22
	bl	_sc27xx_efuse_unlock
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
Lloh16:
	adrp	x8, _SC27XX_EFUSE_STANDBY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SC27XX_EFUSE_STANDBY@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sc27xx_efuse_poll_status
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	w0, [x22]
	ldr	x8, [x22, #8]
Lloh19:
	adrp	x9, _SC27XX_EFUSE_BLOCK_INDEX@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SC27XX_EFUSE_BLOCK_INDEX@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh22:
	adrp	x8, _SC27XX_EFUSE_BLOCK_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SC27XX_EFUSE_BLOCK_MASK@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	and	x2, x8, x25
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.9:
	ldr	w0, [x22]
Lloh25:
	adrp	x9, _SC27XX_EFUSE_MODE_CTRL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SC27XX_EFUSE_MODE_CTRL@GOTPAGEOFF]
	ldr	x8, [x22, #8]
Lloh27:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh28:
	adrp	x8, _SC27XX_EFUSE_RD_START@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SC27XX_EFUSE_RD_START@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.10:
Lloh31:
	adrp	x8, _SC27XX_EFUSE_RD_DONE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SC27XX_EFUSE_RD_DONE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sc27xx_efuse_poll_status
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.11:
	ldr	w0, [x22]
	ldr	x8, [x22, #8]
Lloh34:
	adrp	x9, _SC27XX_EFUSE_DATA_RD@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SC27XX_EFUSE_DATA_RD@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x2, sp, #8
	bl	_regmap_read
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w0, [x22]
	ldr	x8, [x22, #8]
Lloh37:
	adrp	x9, _SC27XX_EFUSE_MODE_CTRL@GOTPAGE
Lloh38:
	ldr	x9, [x9, _SC27XX_EFUSE_MODE_CTRL@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh40:
	adrp	x8, _SC27XX_EFUSE_CLR_RDDONE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SC27XX_EFUSE_CLR_RDDONE@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	x23, x0
LBB0_13:
	ldr	w0, [x22]
	ldr	x1, [x27]
	ldr	w2, [x28]
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x0, x22
	bl	_sc27xx_efuse_unlock
	cbnz	w23, LBB0_6
; %bb.14:
	msub	x8, x25, x24, x21
	mul	x8, x26, x8
	ldr	x9, [sp, #8]
	lsr	x8, x9, x8
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_SC27XX_EFUSE_BLOCK_WIDTH,8,3   ; @SC27XX_EFUSE_BLOCK_WIDTH
	.comm	_BITS_PER_BYTE,8,3              ; @BITS_PER_BYTE
	.comm	_SC27XX_EFUSE_BLOCK_MAX,8,3     ; @SC27XX_EFUSE_BLOCK_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SC27XX_MODULE_EN,8,3           ; @SC27XX_MODULE_EN
	.comm	_SC27XX_EFUSE_EN,4,2            ; @SC27XX_EFUSE_EN
	.comm	_SC27XX_EFUSE_STANDBY,4,2       ; @SC27XX_EFUSE_STANDBY
	.comm	_SC27XX_EFUSE_BLOCK_INDEX,8,3   ; @SC27XX_EFUSE_BLOCK_INDEX
	.comm	_SC27XX_EFUSE_BLOCK_MASK,8,3    ; @SC27XX_EFUSE_BLOCK_MASK
	.comm	_SC27XX_EFUSE_MODE_CTRL,8,3     ; @SC27XX_EFUSE_MODE_CTRL
	.comm	_SC27XX_EFUSE_RD_START,4,2      ; @SC27XX_EFUSE_RD_START
	.comm	_SC27XX_EFUSE_RD_DONE,4,2       ; @SC27XX_EFUSE_RD_DONE
	.comm	_SC27XX_EFUSE_DATA_RD,8,3       ; @SC27XX_EFUSE_DATA_RD
	.comm	_SC27XX_EFUSE_CLR_RDDONE,4,2    ; @SC27XX_EFUSE_CLR_RDDONE
	.no_dead_strip	_sc27xx_efuse_read
.subsections_via_symbols
