	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpr0521_write_int_enable
_rpr0521_write_int_enable:              ## @rpr0521_write_int_enable
	.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	8(%rdi), %edi
	movq	_RPR0521_REG_PXS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RPR0521_PXS_PERSISTENCE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RPR0521_PXS_PERSISTENCE_DRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movl	8(%rbx), %edi
	movq	_RPR0521_REG_INTERRUPT@GOTPCREL(%rip), %rax
	movq	_RPR0521_INTERRUPT_INT_REASSERT_DISABLE@GOTPCREL(%rip), %rcx
	movq	_RPR0521_INTERRUPT_INT_TRIG_ALS_DISABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_RPR0521_INTERRUPT_INT_TRIG_PS_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	(%rbx), %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_RPR0521_REG_PXS_CTRL,4,2       ## @RPR0521_REG_PXS_CTRL
	.comm	_RPR0521_PXS_PERSISTENCE_MASK,4,2 ## @RPR0521_PXS_PERSISTENCE_MASK
	.comm	_RPR0521_PXS_PERSISTENCE_DRDY,4,2 ## @RPR0521_PXS_PERSISTENCE_DRDY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PS control reg write fail.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RPR0521_REG_INTERRUPT,4,2      ## @RPR0521_REG_INTERRUPT
	.comm	_RPR0521_INTERRUPT_INT_REASSERT_DISABLE,4,2 ## @RPR0521_INTERRUPT_INT_REASSERT_DISABLE
	.comm	_RPR0521_INTERRUPT_INT_TRIG_ALS_DISABLE,4,2 ## @RPR0521_INTERRUPT_INT_TRIG_ALS_DISABLE
	.comm	_RPR0521_INTERRUPT_INT_TRIG_PS_ENABLE,4,2 ## @RPR0521_INTERRUPT_INT_TRIG_PS_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"Interrupt setup write fail.\n"

	.no_dead_strip	_rpr0521_write_int_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpr0521_write_int_enable
_rpr0521_write_int_enable:              ; @rpr0521_write_int_enable
	.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, #8]
Lloh0:
	adrp	x8, _RPR0521_REG_PXS_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPR0521_REG_PXS_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RPR0521_PXS_PERSISTENCE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RPR0521_PXS_PERSISTENCE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _RPR0521_PXS_PERSISTENCE_DRDY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RPR0521_PXS_PERSISTENCE_DRDY@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	cbz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x8, _RPR0521_REG_INTERRUPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RPR0521_REG_INTERRUPT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _RPR0521_INTERRUPT_INT_REASSERT_DISABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RPR0521_INTERRUPT_INT_REASSERT_DISABLE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _RPR0521_INTERRUPT_INT_TRIG_ALS_DISABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RPR0521_INTERRUPT_INT_TRIG_ALS_DISABLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _RPR0521_INTERRUPT_INT_TRIG_PS_ENABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RPR0521_INTERRUPT_INT_TRIG_PS_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_regmap_write
	cbz	w0, LBB0_5
; %bb.3:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	ldr	x0, [x19]
	bl	_dev_err
Lloh25:
	adrp	x8, _EBUSY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RPR0521_REG_PXS_CTRL,4,2       ; @RPR0521_REG_PXS_CTRL
	.comm	_RPR0521_PXS_PERSISTENCE_MASK,4,2 ; @RPR0521_PXS_PERSISTENCE_MASK
	.comm	_RPR0521_PXS_PERSISTENCE_DRDY,4,2 ; @RPR0521_PXS_PERSISTENCE_DRDY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PS control reg write fail.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RPR0521_REG_INTERRUPT,4,2      ; @RPR0521_REG_INTERRUPT
	.comm	_RPR0521_INTERRUPT_INT_REASSERT_DISABLE,4,2 ; @RPR0521_INTERRUPT_INT_REASSERT_DISABLE
	.comm	_RPR0521_INTERRUPT_INT_TRIG_ALS_DISABLE,4,2 ; @RPR0521_INTERRUPT_INT_TRIG_ALS_DISABLE
	.comm	_RPR0521_INTERRUPT_INT_TRIG_PS_ENABLE,4,2 ; @RPR0521_INTERRUPT_INT_TRIG_PS_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"Interrupt setup write fail.\n"

	.no_dead_strip	_rpr0521_write_int_enable
.subsections_via_symbols
