	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_mx_efuse_read_addr
_meson_mx_efuse_read_addr:              ## @meson_mx_efuse_read_addr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MESON_MX_EFUSE_CNTL1@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_meson_mx_efuse_mask_bits
	movq	(%r13), %rsi
	movq	_MESON_MX_EFUSE_CNTL1_BYTE_ADDR_SET@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_meson_mx_efuse_mask_bits
	movq	(%r13), %rsi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_meson_mx_efuse_mask_bits
	movq	(%r13), %rsi
	movq	_MESON_MX_EFUSE_CNTL1_AUTO_RD_START@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_meson_mx_efuse_mask_bits
	movq	(%r13), %rsi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_meson_mx_efuse_mask_bits
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	movq	_MESON_MX_EFUSE_CNTL1_AUTO_RD_BUSY@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%r12d, %eax
	sete	%dl
	movl	%r12d, %esi
	movl	$1, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_readl_poll_timeout_atomic
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movq	_MESON_MX_EFUSE_CNTL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_3:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK,4,2 ## @MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK
	.comm	_MESON_MX_EFUSE_CNTL1,8,3       ## @MESON_MX_EFUSE_CNTL1
	.comm	_MESON_MX_EFUSE_CNTL1_BYTE_ADDR_SET,4,2 ## @MESON_MX_EFUSE_CNTL1_BYTE_ADDR_SET
	.comm	_MESON_MX_EFUSE_CNTL1_AUTO_RD_START,4,2 ## @MESON_MX_EFUSE_CNTL1_AUTO_RD_START
	.comm	_MESON_MX_EFUSE_CNTL1_AUTO_RD_BUSY,4,2 ## @MESON_MX_EFUSE_CNTL1_AUTO_RD_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout while reading efuse address %u\n"

	.comm	_MESON_MX_EFUSE_CNTL2,8,3       ## @MESON_MX_EFUSE_CNTL2
	.no_dead_strip	_meson_mx_efuse_read_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_mx_efuse_read_addr
_meson_mx_efuse_read_addr:              ; @meson_mx_efuse_read_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_FIELD_PREP
	mov	x22, x0
Lloh2:
	adrp	x24, _MESON_MX_EFUSE_CNTL1@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MESON_MX_EFUSE_CNTL1@GOTPAGEOFF]
	ldr	x1, [x24]
	ldr	w2, [x23]
	mov	x0, x21
	mov	x3, x22
	bl	_meson_mx_efuse_mask_bits
	ldr	x1, [x24]
Lloh4:
	adrp	x23, _MESON_MX_EFUSE_CNTL1_BYTE_ADDR_SET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MESON_MX_EFUSE_CNTL1_BYTE_ADDR_SET@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x21
	mov	x3, x2
	bl	_meson_mx_efuse_mask_bits
	ldr	x1, [x24]
	ldr	w2, [x23]
	mov	x0, x21
	mov	w3, #0
	bl	_meson_mx_efuse_mask_bits
	ldr	x1, [x24]
Lloh6:
	adrp	x23, _MESON_MX_EFUSE_CNTL1_AUTO_RD_START@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MESON_MX_EFUSE_CNTL1_AUTO_RD_START@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x21
	mov	x3, x2
	bl	_meson_mx_efuse_mask_bits
	ldr	x1, [x24]
	ldr	w2, [x23]
	mov	x0, x21
	mov	w3, #0
	bl	_meson_mx_efuse_mask_bits
	ldr	x8, [x21]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x21]
	ldr	x9, [x24]
	add	x0, x9, x8
Lloh8:
	adrp	x8, _MESON_MX_EFUSE_CNTL1_AUTO_RD_BUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MESON_MX_EFUSE_CNTL1_AUTO_RD_BUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	cset	w2, eq
	mov	x1, x22
	mov	w3, #1
	mov	w4, #1000
	bl	_readl_poll_timeout_atomic
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _MESON_MX_EFUSE_CNTL2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MESON_MX_EFUSE_CNTL2@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	str	w0, [x19]
LBB0_3:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK,4,2 ; @MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK
	.comm	_MESON_MX_EFUSE_CNTL1,8,3       ; @MESON_MX_EFUSE_CNTL1
	.comm	_MESON_MX_EFUSE_CNTL1_BYTE_ADDR_SET,4,2 ; @MESON_MX_EFUSE_CNTL1_BYTE_ADDR_SET
	.comm	_MESON_MX_EFUSE_CNTL1_AUTO_RD_START,4,2 ; @MESON_MX_EFUSE_CNTL1_AUTO_RD_START
	.comm	_MESON_MX_EFUSE_CNTL1_AUTO_RD_BUSY,4,2 ; @MESON_MX_EFUSE_CNTL1_AUTO_RD_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout while reading efuse address %u\n"

	.comm	_MESON_MX_EFUSE_CNTL2,8,3       ; @MESON_MX_EFUSE_CNTL2
	.no_dead_strip	_meson_mx_efuse_read_addr
.subsections_via_symbols
