	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_pmic_eic_bus_sync_unlock
_sprd_pmic_eic_bus_sync_unlock:         ## @sprd_pmic_eic_bus_sync_unlock
	.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
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_irqd_get_trigger_type
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_irqd_to_hwirq
	movl	%eax, %r15d
	movq	_IRQ_TYPE_EDGE_BOTH@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sprd_pmic_eic_get
	movq	_SPRD_PMIC_EIC_IEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_4:
	movq	_SPRD_PMIC_EIC_IEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rax
	movq	_REG_IEV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	jmp	LBB0_5
LBB0_3:
	movl	$1, %ecx
LBB0_5:
	callq	_sprd_pmic_eic_update
	movq	_SPRD_PMIC_EIC_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rax
	movq	_REG_IE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sprd_pmic_eic_update
	movq	_SPRD_PMIC_EIC_TRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rax
	movq	_REG_TRIG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sprd_pmic_eic_update
	addq	$8, %r12
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ## @IRQ_TYPE_EDGE_BOTH
	.comm	_SPRD_PMIC_EIC_IEV,4,2          ## @SPRD_PMIC_EIC_IEV
	.comm	_REG_IEV,8,3                    ## @REG_IEV
	.comm	_SPRD_PMIC_EIC_IE,4,2           ## @SPRD_PMIC_EIC_IE
	.comm	_REG_IE,8,3                     ## @REG_IE
	.comm	_SPRD_PMIC_EIC_TRIG,4,2         ## @SPRD_PMIC_EIC_TRIG
	.comm	_REG_TRIG,8,3                   ## @REG_TRIG
	.no_dead_strip	_sprd_pmic_eic_bus_sync_unlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_pmic_eic_bus_sync_unlock
_sprd_pmic_eic_bus_sync_unlock:         ; @sprd_pmic_eic_bus_sync_unlock
	.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
	mov	x21, x0
	bl	_irq_data_get_irq_chip_data
	mov	x19, x0
	bl	_gpiochip_get_data
	mov	x20, x0
	mov	x0, x21
	bl	_irqd_get_trigger_type
	mov	x22, x0
	mov	x0, x21
	bl	_irqd_to_hwirq
	mov	x21, x0
Lloh0:
	adrp	x8, _IRQ_TYPE_EDGE_BOTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_BOTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_sprd_pmic_eic_get
Lloh3:
	adrp	x8, _SPRD_PMIC_EIC_IEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPRD_PMIC_EIC_IEV@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _SPRD_PMIC_EIC_IEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPRD_PMIC_EIC_IEV@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _REG_IEV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REG_IEV@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x21
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
LBB0_5:
	bl	_sprd_pmic_eic_update
Lloh12:
	adrp	x8, _SPRD_PMIC_EIC_IE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPRD_PMIC_EIC_IE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _REG_IE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _REG_IE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_sprd_pmic_eic_update
Lloh18:
	adrp	x8, _SPRD_PMIC_EIC_TRIG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPRD_PMIC_EIC_TRIG@GOTPAGEOFF]
	ldr	x9, [x20], #8
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _REG_TRIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REG_TRIG@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w3, [x9, x8, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_sprd_pmic_eic_update
	mov	x0, x20
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ; @IRQ_TYPE_EDGE_BOTH
	.comm	_SPRD_PMIC_EIC_IEV,4,2          ; @SPRD_PMIC_EIC_IEV
	.comm	_REG_IEV,8,3                    ; @REG_IEV
	.comm	_SPRD_PMIC_EIC_IE,4,2           ; @SPRD_PMIC_EIC_IE
	.comm	_REG_IE,8,3                     ; @REG_IE
	.comm	_SPRD_PMIC_EIC_TRIG,4,2         ; @SPRD_PMIC_EIC_TRIG
	.comm	_REG_TRIG,8,3                   ; @REG_TRIG
	.no_dead_strip	_sprd_pmic_eic_bus_sync_unlock
.subsections_via_symbols
