	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_string
_get_string:                            ## @get_string
	.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
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_MAX1721X_REG_MFG_STR@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_MAX1721X_REG_DEV_STR@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_3
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_3:
	testl	%edx, %edx
	je	LBB0_8
## %bb.4:
	movl	%edx, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	leal	(%rbx,%r12), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movzwl	-44(%rbp), %eax
	rolw	$8, %ax
	movw	%ax, (%r14,%r12,2)
	incq	%r12
	cmpl	%r12d, %r13d
	jne	LBB0_5
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX1721X_REG_MFG_STR,8,3       ## @MAX1721X_REG_MFG_STR
	.comm	_MAX1721X_REG_DEV_STR,8,3       ## @MAX1721X_REG_DEV_STR
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_get_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_string
_get_string:                            ; @get_string
	.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
	cbz	x3, LBB0_7
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x8, _MAX1721X_REG_MFG_STR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX1721X_REG_MFG_STR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MAX1721X_REG_DEV_STR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX1721X_REG_DEV_STR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_7
; %bb.2:
	mov	x20, x2
	cbz	w2, LBB0_6
; %bb.3:
	mov	x19, x3
	mov	x22, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	x1, x21
	bl	_regmap_read
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #12]
	rev	w8, w8
	lsr	w8, w8, #16
	strh	w8, [x19], #2
	add	w21, w21, #1
	subs	w20, w20, #1
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX1721X_REG_MFG_STR,8,3       ; @MAX1721X_REG_MFG_STR
	.comm	_MAX1721X_REG_DEV_STR,8,3       ; @MAX1721X_REG_DEV_STR
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_get_string
.subsections_via_symbols
