	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lmp91000_read_config
_lmp91000_read_config:                  ## @lmp91000_read_config
	.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	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	(%r14), %r13
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_read_bool
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	$0, -44(%rbp)
LBB0_5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_lmp91000_tia_gain@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_17
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	(%rdi,%r15,4), %eax
	cmpl	-44(%rbp), %eax
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r15
	jl	LBB0_7
LBB0_17:
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.19:
	negl	%r12d
	movl	-44(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_20
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_3
LBB0_8:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_LMP91000_REG_TIACN_GAIN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	jmp	LBB0_9
LBB0_18:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $r15d
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	leaq	L_.str.4(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	$100, -44(%rbp)
	leaq	L_.str.5(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$100, %edx
	callq	_dev_info
LBB0_11:
	movl	(%rbx), %r12d
	movq	_lmp91000_rload@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_22
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	(%rdi,%rbx,4), %eax
	cmpl	-44(%rbp), %eax
	je	LBB0_14
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_22:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.23:
	negl	%r12d
	movl	-44(%rbp), %edx
	leaq	L_.str.6(%rip), %rsi
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_3
LBB0_14:
	orl	%ebx, %r15d
LBB0_15:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	_LMP91000_REG_LOCK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_LMP91000_REG_TIACN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_LMP91000_REG_REFCN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LMP91000_REG_REFCN_EXT_REF@GOTPCREL(%rip), %rax
	movq	_LMP91000_REG_REFCN_50_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	$1, %edx
	callq	_regmap_write
LBB0_3:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,tia-gain-ohm"

L_.str.1:                               ## @.str.1
	.asciz	"ti,external-tia-resistor"

L_.str.2:                               ## @.str.2
	.asciz	"no ti,tia-gain-ohm defined and external resistor not specified\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_lmp91000_tia_gain,8,3          ## @lmp91000_tia_gain
	.comm	_LMP91000_REG_TIACN_GAIN_SHIFT,4,2 ## @LMP91000_REG_TIACN_GAIN_SHIFT
L_.str.3:                               ## @.str.3
	.asciz	"invalid ti,tia-gain-ohm %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"ti,rload-ohm"

L_.str.5:                               ## @.str.5
	.asciz	"no ti,rload-ohm defined, default to %d\n"

	.comm	_lmp91000_rload,8,3             ## @lmp91000_rload
L_.str.6:                               ## @.str.6
	.asciz	"invalid ti,rload-ohm %d\n"

	.comm	_LMP91000_REG_LOCK,4,2          ## @LMP91000_REG_LOCK
	.comm	_LMP91000_REG_TIACN,4,2         ## @LMP91000_REG_TIACN
	.comm	_LMP91000_REG_REFCN,4,2         ## @LMP91000_REG_REFCN
	.comm	_LMP91000_REG_REFCN_EXT_REF,4,2 ## @LMP91000_REG_REFCN_EXT_REF
	.comm	_LMP91000_REG_REFCN_50_ZERO,4,2 ## @LMP91000_REG_REFCN_50_ZERO
	.no_dead_strip	_lmp91000_read_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmp91000_read_config
_lmp91000_read_config:                  ; @lmp91000_read_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x22, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	w0, LBB0_9
; %bb.2:
	str	wzr, [sp, #12]
LBB0_3:
Lloh4:
	adrp	x23, _EINVAL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh6:
	adrp	x24, _lmp91000_tia_gain@GOTPAGE
Lloh7:
	ldr	x24, [x24, _lmp91000_tia_gain@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x25, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	ldr	w8, [x0, x25, lsl #2]
	ldr	w9, [sp, #12]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.lt	LBB0_5
LBB0_7:
	cbz	w21, LBB0_11
; %bb.8:
	neg	w21, w21
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_9:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_10:
Lloh12:
	adrp	x8, _LMP91000_REG_TIACN_GAIN_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LMP91000_REG_TIACN_GAIN_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w21, w25, w8
	b	LBB0_12
LBB0_11:
                                        ; implicit-def: $w21
LBB0_12:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #12
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_14
; %bb.13:
	mov	w8, #100
	str	w8, [sp, #12]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w2, #100
	bl	_dev_info
LBB0_14:
	ldr	w22, [x23]
Lloh19:
	adrp	x23, _lmp91000_rload@GOTPAGE
Lloh20:
	ldr	x23, [x23, _lmp91000_rload@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.15:
	mov	x24, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	w8, [x0, x24, lsl #2]
	ldr	w9, [sp, #12]
	cmp	w8, w9
	b.eq	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.lt	LBB0_16
LBB0_18:
	cbz	w22, LBB0_22
; %bb.19:
	neg	w21, w22
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_20:
	mov	x0, x20
	bl	_dev_err
	b	LBB0_23
LBB0_21:
	orr	w21, w21, w24
LBB0_22:
	ldr	w0, [x19]
Lloh23:
	adrp	x20, _LMP91000_REG_LOCK@GOTPAGE
Lloh24:
	ldr	x20, [x20, _LMP91000_REG_LOCK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x19]
Lloh25:
	adrp	x8, _LMP91000_REG_TIACN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LMP91000_REG_TIACN@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_regmap_write
	ldr	w0, [x19]
Lloh28:
	adrp	x8, _LMP91000_REG_REFCN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LMP91000_REG_REFCN@GOTPAGEOFF]
Lloh30:
	adrp	x9, _LMP91000_REG_REFCN_EXT_REF@GOTPAGE
Lloh31:
	ldr	x9, [x9, _LMP91000_REG_REFCN_EXT_REF@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	ldr	w8, [x9]
Lloh34:
	adrp	x9, _LMP91000_REG_REFCN_50_ZERO@GOTPAGE
Lloh35:
	ldr	x9, [x9, _LMP91000_REG_REFCN_50_ZERO@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	w2, #1
	bl	_regmap_write
	mov	w21, #0
LBB0_23:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,tia-gain-ohm"

l_.str.1:                               ; @.str.1
	.asciz	"ti,external-tia-resistor"

l_.str.2:                               ; @.str.2
	.asciz	"no ti,tia-gain-ohm defined and external resistor not specified\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_lmp91000_tia_gain,8,3          ; @lmp91000_tia_gain
	.comm	_LMP91000_REG_TIACN_GAIN_SHIFT,4,2 ; @LMP91000_REG_TIACN_GAIN_SHIFT
l_.str.3:                               ; @.str.3
	.asciz	"invalid ti,tia-gain-ohm %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"ti,rload-ohm"

l_.str.5:                               ; @.str.5
	.asciz	"no ti,rload-ohm defined, default to %d\n"

	.comm	_lmp91000_rload,8,3             ; @lmp91000_rload
l_.str.6:                               ; @.str.6
	.asciz	"invalid ti,rload-ohm %d\n"

	.comm	_LMP91000_REG_LOCK,4,2          ; @LMP91000_REG_LOCK
	.comm	_LMP91000_REG_TIACN,4,2         ; @LMP91000_REG_TIACN
	.comm	_LMP91000_REG_REFCN,4,2         ; @LMP91000_REG_REFCN
	.comm	_LMP91000_REG_REFCN_EXT_REF,4,2 ; @LMP91000_REG_REFCN_EXT_REF
	.comm	_LMP91000_REG_REFCN_50_ZERO,4,2 ; @LMP91000_REG_REFCN_50_ZERO
	.no_dead_strip	_lmp91000_read_config
.subsections_via_symbols
