	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function us5182d_get_platform_data
_us5182d_get_platform_data:             ## @us5182d_get_platform_data
	.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
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%rax, %r12
	movq	(%rax), %rdi
	leaq	24(%rax), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_device_property_read_u32
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_US5182D_GA_RESOLUTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_2:
	movq	(%r12), %r14
	movl	20(%r12), %r15d
	movq	_us5182d_dark_ths_vals@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_ARRAY_SIZE
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_device_property_read_u16_array
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %eax
	movl	%eax, 20(%r12)
LBB0_4:
	movq	(%r12), %rdi
	leaq	16(%rbx), %r14
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_device_property_read_u8
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_US5182D_REG_AUTO_HDARK_GAIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_6:
	movq	(%r12), %rdi
	addq	$12, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_device_property_read_u8
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_US5182D_REG_AUTO_LDARK_GAIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_8:
	movq	(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_device_property_read_bool
	movl	%eax, 8(%r12)
	addq	$8, %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	"upisemi,glass-coef"

	.comm	_US5182D_GA_RESOLUTION,4,2      ## @US5182D_GA_RESOLUTION
L_.str.1:                               ## @.str.1
	.asciz	"upisemi,dark-ths"

	.comm	_us5182d_dark_ths_vals,4,2      ## @us5182d_dark_ths_vals
L_.str.2:                               ## @.str.2
	.asciz	"upisemi,upper-dark-gain"

	.comm	_US5182D_REG_AUTO_HDARK_GAIN_DEFAULT,4,2 ## @US5182D_REG_AUTO_HDARK_GAIN_DEFAULT
L_.str.3:                               ## @.str.3
	.asciz	"upisemi,lower-dark-gain"

	.comm	_US5182D_REG_AUTO_LDARK_GAIN_DEFAULT,4,2 ## @US5182D_REG_AUTO_LDARK_GAIN_DEFAULT
L_.str.4:                               ## @.str.4
	.asciz	"upisemi,continuous"

	.no_dead_strip	_us5182d_get_platform_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function us5182d_get_platform_data
_us5182d_get_platform_data:             ; @us5182d_get_platform_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_iio_priv
	mov	x19, x0
	mov	x20, x0
	ldr	x0, [x20], #24
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_device_property_read_u32
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _US5182D_GA_RESOLUTION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _US5182D_GA_RESOLUTION@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_2:
	ldr	x20, [x19]
	ldr	w21, [x19, #20]
Lloh5:
	adrp	x22, _us5182d_dark_ths_vals@GOTPAGE
Lloh6:
	ldr	x22, [x22, _us5182d_dark_ths_vals@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_device_property_read_u16_array
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x22]
	str	w8, [x19, #20]
LBB0_4:
	mov	x20, x19
	ldr	x0, [x20], #16
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_device_property_read_u8
	cbz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _US5182D_REG_AUTO_HDARK_GAIN_DEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _US5182D_REG_AUTO_HDARK_GAIN_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_6:
	mov	x20, x19
	ldr	x0, [x20], #12
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_device_property_read_u8
	cbz	x0, LBB0_8
; %bb.7:
Lloh16:
	adrp	x8, _US5182D_REG_AUTO_LDARK_GAIN_DEFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _US5182D_REG_AUTO_LDARK_GAIN_DEFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_8:
	ldr	x0, [x19]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_device_property_read_bool
	str	w0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"upisemi,glass-coef"

	.comm	_US5182D_GA_RESOLUTION,4,2      ; @US5182D_GA_RESOLUTION
l_.str.1:                               ; @.str.1
	.asciz	"upisemi,dark-ths"

	.comm	_us5182d_dark_ths_vals,4,2      ; @us5182d_dark_ths_vals
l_.str.2:                               ; @.str.2
	.asciz	"upisemi,upper-dark-gain"

	.comm	_US5182D_REG_AUTO_HDARK_GAIN_DEFAULT,4,2 ; @US5182D_REG_AUTO_HDARK_GAIN_DEFAULT
l_.str.3:                               ; @.str.3
	.asciz	"upisemi,lower-dark-gain"

	.comm	_US5182D_REG_AUTO_LDARK_GAIN_DEFAULT,4,2 ; @US5182D_REG_AUTO_LDARK_GAIN_DEFAULT
l_.str.4:                               ; @.str.4
	.asciz	"upisemi,continuous"

	.no_dead_strip	_us5182d_get_platform_data
.subsections_via_symbols
