	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jsa1212_read_pxs_data
_jsa1212_read_pxs_data:                 ## @jsa1212_read_pxs_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_JSA1212_CONF_PXS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_jsa1212_pxs_enable
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_JSA1212_PXS_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movl	8(%rbx), %edi
	movq	_JSA1212_PXS_DATA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_JSA1212_PXS_DATA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	_JSA1212_CONF_PXS_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_jsa1212_pxs_enable
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JSA1212_CONF_PXS_ENABLE,4,2    ## @JSA1212_CONF_PXS_ENABLE
	.comm	_JSA1212_PXS_DELAY_MS,4,2       ## @JSA1212_PXS_DELAY_MS
	.comm	_JSA1212_PXS_DATA_REG,4,2       ## @JSA1212_PXS_DATA_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pxs data read err\n"

	.comm	_JSA1212_PXS_DATA_MASK,4,2      ## @JSA1212_PXS_DATA_MASK
	.comm	_JSA1212_CONF_PXS_DISABLE,4,2   ## @JSA1212_CONF_PXS_DISABLE
	.no_dead_strip	_jsa1212_read_pxs_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jsa1212_read_pxs_data
_jsa1212_read_pxs_data:                 ; @jsa1212_read_pxs_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _JSA1212_CONF_PXS_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSA1212_CONF_PXS_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_jsa1212_pxs_enable
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _JSA1212_PXS_DELAY_MS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JSA1212_PXS_DELAY_MS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msleep
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _JSA1212_PXS_DATA_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JSA1212_PXS_DATA_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _JSA1212_PXS_DATA_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _JSA1212_PXS_DATA_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x20]
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh14:
	adrp	x8, _JSA1212_CONF_PXS_DISABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _JSA1212_CONF_PXS_DISABLE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_jsa1212_pxs_enable
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_JSA1212_CONF_PXS_ENABLE,4,2    ; @JSA1212_CONF_PXS_ENABLE
	.comm	_JSA1212_PXS_DELAY_MS,4,2       ; @JSA1212_PXS_DELAY_MS
	.comm	_JSA1212_PXS_DATA_REG,4,2       ; @JSA1212_PXS_DATA_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pxs data read err\n"

	.comm	_JSA1212_PXS_DATA_MASK,4,2      ; @JSA1212_PXS_DATA_MASK
	.comm	_JSA1212_CONF_PXS_DISABLE,4,2   ; @JSA1212_CONF_PXS_DISABLE
	.no_dead_strip	_jsa1212_read_pxs_data
.subsections_via_symbols
