	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jsa1212_chip_init
_jsa1212_chip_init:                     ## @jsa1212_chip_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_JSA1212_CONF_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_JSA1212_CONF_PXS_SLP_50MS@GOTPCREL(%rip), %rax
	movq	_JSA1212_CONF_IRDR_200MA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	4(%rbx), %edi
	movq	_JSA1212_INT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_JSA1212_INT_ALS_PRST_4CONV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_JSA1212_ALS_RNG_0_2048@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JSA1212_CONF_REG,4,2           ## @JSA1212_CONF_REG
	.comm	_JSA1212_CONF_PXS_SLP_50MS,4,2  ## @JSA1212_CONF_PXS_SLP_50MS
	.comm	_JSA1212_CONF_IRDR_200MA,4,2    ## @JSA1212_CONF_IRDR_200MA
	.comm	_JSA1212_INT_REG,4,2            ## @JSA1212_INT_REG
	.comm	_JSA1212_INT_ALS_PRST_4CONV,4,2 ## @JSA1212_INT_ALS_PRST_4CONV
	.comm	_JSA1212_ALS_RNG_0_2048,4,2     ## @JSA1212_ALS_RNG_0_2048
	.no_dead_strip	_jsa1212_chip_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jsa1212_chip_init
_jsa1212_chip_init:                     ; @jsa1212_chip_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _JSA1212_CONF_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSA1212_CONF_REG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _JSA1212_CONF_PXS_SLP_50MS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _JSA1212_CONF_PXS_SLP_50MS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _JSA1212_CONF_IRDR_200MA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _JSA1212_CONF_IRDR_200MA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x8, _JSA1212_INT_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JSA1212_INT_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _JSA1212_INT_ALS_PRST_4CONV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JSA1212_INT_ALS_PRST_4CONV@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	w0, #0
Lloh15:
	adrp	x8, _JSA1212_ALS_RNG_0_2048@GOTPAGE
Lloh16:
	ldr	x8, [x8, _JSA1212_ALS_RNG_0_2048@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_JSA1212_CONF_REG,4,2           ; @JSA1212_CONF_REG
	.comm	_JSA1212_CONF_PXS_SLP_50MS,4,2  ; @JSA1212_CONF_PXS_SLP_50MS
	.comm	_JSA1212_CONF_IRDR_200MA,4,2    ; @JSA1212_CONF_IRDR_200MA
	.comm	_JSA1212_INT_REG,4,2            ; @JSA1212_INT_REG
	.comm	_JSA1212_INT_ALS_PRST_4CONV,4,2 ; @JSA1212_INT_ALS_PRST_4CONV
	.comm	_JSA1212_ALS_RNG_0_2048,4,2     ; @JSA1212_ALS_RNG_0_2048
	.no_dead_strip	_jsa1212_chip_init
.subsections_via_symbols
