	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_pmic_eic_probe
_sprd_pmic_eic_probe:                   ## @sprd_pmic_eic_probe
	.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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$136, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	128(%rax), %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	4(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 124(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	leaq	120(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_9:
	movl	(%r15), %r13d
	movq	_sprd_pmic_eic_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movq	%rax, %r9
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	8(%r15), %rbx
	movq	%rax, 80(%r15)
	movq	_SPRD_PMIC_EIC_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	movl	$-1, 8(%r15)
	movq	%r14, 64(%r15)
	movl	(%r14), %eax
	movl	%eax, 56(%r15)
	movq	_sprd_pmic_eic_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_sprd_pmic_eic_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_sprd_pmic_eic_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movq	_sprd_pmic_eic_set_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_sprd_pmic_eic_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_sprd_pmic_eic_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r15, %rcx
	addq	$88, %rcx
	movq	%rax, 112(%r15)
	movq	_sprd_pmic_eic_irq_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r15)
	movq	_sprd_pmic_eic_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r15)
	movq	_sprd_pmic_eic_irq_set_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r15)
	movq	_sprd_pmic_eic_bus_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r15)
	movq	_sprd_pmic_eic_bus_sync_unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r15)
	movq	_IRQCHIP_SKIP_SET_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r15)
	movq	%rcx, 24(%r15)
	movl	$1, 16(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get PMIC EIC base address.\n"

	.comm	_sprd_pmic_eic_irq_handler,4,2  ## @sprd_pmic_eic_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_NO_SUSPEND,4,2            ## @IRQF_NO_SUSPEND
L_.str.2:                               ## @.str.2
	.asciz	"Failed to request PMIC EIC IRQ.\n"

	.comm	_SPRD_PMIC_EIC_NR,4,2           ## @SPRD_PMIC_EIC_NR
	.comm	_sprd_pmic_eic_direction_input,4,2 ## @sprd_pmic_eic_direction_input
	.comm	_sprd_pmic_eic_request,4,2      ## @sprd_pmic_eic_request
	.comm	_sprd_pmic_eic_free,4,2         ## @sprd_pmic_eic_free
	.comm	_sprd_pmic_eic_set_config,4,2   ## @sprd_pmic_eic_set_config
	.comm	_sprd_pmic_eic_set,4,2          ## @sprd_pmic_eic_set
	.comm	_sprd_pmic_eic_get,4,2          ## @sprd_pmic_eic_get
	.comm	_sprd_pmic_eic_irq_mask,4,2     ## @sprd_pmic_eic_irq_mask
	.comm	_sprd_pmic_eic_irq_unmask,4,2   ## @sprd_pmic_eic_irq_unmask
	.comm	_sprd_pmic_eic_irq_set_type,4,2 ## @sprd_pmic_eic_irq_set_type
	.comm	_sprd_pmic_eic_bus_lock,4,2     ## @sprd_pmic_eic_bus_lock
	.comm	_sprd_pmic_eic_bus_sync_unlock,4,2 ## @sprd_pmic_eic_bus_sync_unlock
	.comm	_IRQCHIP_SKIP_SET_WAKE,4,2      ## @IRQCHIP_SKIP_SET_WAKE
L_.str.3:                               ## @.str.3
	.asciz	"Could not register gpiochip %d.\n"

	.no_dead_strip	_sprd_pmic_eic_probe
.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_probe
_sprd_pmic_eic_probe:                   ; @sprd_pmic_eic_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #136
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	add	x0, x0, #128
	bl	_mutex_init
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x20]
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x20, #124]
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w0, [x19]
	add	x2, x20, #120
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_u32
	cbz	w0, LBB0_9
; %bb.4:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x21, x0
	b	LBB0_12
LBB0_7:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_9:
	ldr	w21, [x20]
Lloh11:
	adrp	x8, _sprd_pmic_eic_irq_handler@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sprd_pmic_eic_irq_handler@GOTPAGEOFF]
Lloh13:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _IRQF_NO_SUSPEND@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IRQF_NO_SUSPEND@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, x22
	mov	x4, x23
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_13
; %bb.10:
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	x0, x19
	bl	_dev_name
	str	x0, [x20, #80]
Lloh22:
	adrp	x8, _SPRD_PMIC_EIC_NR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SPRD_PMIC_EIC_NR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x20, #72]
	mov	w8, #-1
	mov	x21, x20
	str	w8, [x21, #8]!
	str	x19, [x20, #64]
	ldr	w8, [x19]
	str	w8, [x20, #56]
Lloh25:
	adrp	x8, _sprd_pmic_eic_direction_input@GOTPAGE
Lloh26:
	ldr	x8, [x8, _sprd_pmic_eic_direction_input@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _sprd_pmic_eic_request@GOTPAGE
Lloh29:
	ldr	x9, [x9, _sprd_pmic_eic_request@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #48]
Lloh31:
	adrp	x8, _sprd_pmic_eic_free@GOTPAGE
Lloh32:
	ldr	x8, [x8, _sprd_pmic_eic_free@GOTPAGEOFF]
Lloh33:
	adrp	x9, _sprd_pmic_eic_set_config@GOTPAGE
Lloh34:
	ldr	x9, [x9, _sprd_pmic_eic_set_config@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
Lloh37:
	adrp	x8, _sprd_pmic_eic_set@GOTPAGE
Lloh38:
	ldr	x8, [x8, _sprd_pmic_eic_set@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _sprd_pmic_eic_get@GOTPAGE
Lloh41:
	ldr	x9, [x9, _sprd_pmic_eic_get@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	mov	x0, x19
	bl	_dev_name
	str	x0, [x20, #112]
Lloh43:
	adrp	x8, _sprd_pmic_eic_irq_mask@GOTPAGE
Lloh44:
	ldr	x8, [x8, _sprd_pmic_eic_irq_mask@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _sprd_pmic_eic_irq_unmask@GOTPAGE
Lloh47:
	ldr	x9, [x9, _sprd_pmic_eic_irq_unmask@GOTPAGEOFF]
	str	w8, [x20, #108]
Lloh48:
	ldr	w8, [x9]
Lloh49:
	adrp	x9, _sprd_pmic_eic_irq_set_type@GOTPAGE
Lloh50:
	ldr	x9, [x9, _sprd_pmic_eic_irq_set_type@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #100]
Lloh52:
	adrp	x8, _sprd_pmic_eic_bus_lock@GOTPAGE
Lloh53:
	ldr	x8, [x8, _sprd_pmic_eic_bus_lock@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _sprd_pmic_eic_bus_sync_unlock@GOTPAGE
Lloh56:
	ldr	x9, [x9, _sprd_pmic_eic_bus_sync_unlock@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #92]
Lloh58:
	adrp	x8, _IRQCHIP_SKIP_SET_WAKE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _IRQCHIP_SKIP_SET_WAKE@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	mov	x9, x20
	str	w8, [x9, #88]!
	str	x9, [x20, #24]
	mov	w8, #1
	str	w8, [x20, #16]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	tbnz	w0, #31, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_12
LBB0_15:
	mov	x21, x0
	str	x21, [sp]
Lloh61:
	adrp	x1, l_.str.3@PAGE
Lloh62:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get PMIC EIC base address.\n"

	.comm	_sprd_pmic_eic_irq_handler,4,2  ; @sprd_pmic_eic_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_NO_SUSPEND,4,2            ; @IRQF_NO_SUSPEND
l_.str.2:                               ; @.str.2
	.asciz	"Failed to request PMIC EIC IRQ.\n"

	.comm	_SPRD_PMIC_EIC_NR,4,2           ; @SPRD_PMIC_EIC_NR
	.comm	_sprd_pmic_eic_direction_input,4,2 ; @sprd_pmic_eic_direction_input
	.comm	_sprd_pmic_eic_request,4,2      ; @sprd_pmic_eic_request
	.comm	_sprd_pmic_eic_free,4,2         ; @sprd_pmic_eic_free
	.comm	_sprd_pmic_eic_set_config,4,2   ; @sprd_pmic_eic_set_config
	.comm	_sprd_pmic_eic_set,4,2          ; @sprd_pmic_eic_set
	.comm	_sprd_pmic_eic_get,4,2          ; @sprd_pmic_eic_get
	.comm	_sprd_pmic_eic_irq_mask,4,2     ; @sprd_pmic_eic_irq_mask
	.comm	_sprd_pmic_eic_irq_unmask,4,2   ; @sprd_pmic_eic_irq_unmask
	.comm	_sprd_pmic_eic_irq_set_type,4,2 ; @sprd_pmic_eic_irq_set_type
	.comm	_sprd_pmic_eic_bus_lock,4,2     ; @sprd_pmic_eic_bus_lock
	.comm	_sprd_pmic_eic_bus_sync_unlock,4,2 ; @sprd_pmic_eic_bus_sync_unlock
	.comm	_IRQCHIP_SKIP_SET_WAKE,4,2      ; @IRQCHIP_SKIP_SET_WAKE
l_.str.3:                               ; @.str.3
	.asciz	"Could not register gpiochip %d.\n"

	.no_dead_strip	_sprd_pmic_eic_probe
.subsections_via_symbols
