	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_pmic_eic_irq_set_type
_sprd_pmic_eic_irq_set_type:            ## @sprd_pmic_eic_irq_set_type
	.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
	movl	%esi, %ebx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %rcx
	xorl	%eax, %eax
	leal	-130(%rbx), %edx
	cmpl	$3, %edx
	jb	LBB0_6
## %bb.1:
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.3:
	movq	(%rcx), %rcx
	movq	_REG_IEV@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	$1, (%rcx,%rdx,4)
	jmp	LBB0_6
LBB0_4:
	movq	(%rcx), %rcx
	movq	_REG_IEV@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	$0, (%rcx,%rdx,4)
	jmp	LBB0_6
LBB0_5:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_IEV,8,3                    ## @REG_IEV
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_sprd_pmic_eic_irq_set_type
.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_irq_set_type
_sprd_pmic_eic_irq_set_type:            ; @sprd_pmic_eic_irq_set_type
	.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, x1
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	sub	w9, w19, #130
	cmp	w9, #3
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x8, x0
	cmp	w19, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w19, #129
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #0
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _REG_IEV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_IEV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _REG_IEV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REG_IEV@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	wzr, [x8, x9, lsl #2]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_IEV,8,3                    ; @REG_IEV
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_sprd_pmic_eic_irq_set_type
.subsections_via_symbols
