	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_gpio_probe
_sprd_gpio_probe:                       ## @sprd_gpio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 116(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movl	116(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_5:
	leaq	112(%r15), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r15, %rsi
	addq	$8, %rsi
	movl	%eax, 108(%r15)
	movq	_SPRD_GPIO_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r15)
	movl	$-1, 8(%r15)
	movq	%r14, 96(%r15)
	movl	(%r14), %eax
	movl	%eax, 88(%r15)
	movq	_sprd_gpio_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r15)
	movq	_sprd_gpio_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r15)
	movq	_sprd_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r15)
	movq	_sprd_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	movq	_sprd_gpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r15)
	movq	_sprd_gpio_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r15)
	movq	_sprd_gpio_irqchip@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r15)
	movq	_handle_bad_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movq	_sprd_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	%r15, 32(%r15)
	movl	$1, 16(%r15)
	movq	%r15, 24(%r15)
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SPRD_GPIO_NR,4,2               ## @SPRD_GPIO_NR
	.comm	_sprd_gpio_request,4,2          ## @sprd_gpio_request
	.comm	_sprd_gpio_free,4,2             ## @sprd_gpio_free
	.comm	_sprd_gpio_get,4,2              ## @sprd_gpio_get
	.comm	_sprd_gpio_set,4,2              ## @sprd_gpio_set
	.comm	_sprd_gpio_direction_input,4,2  ## @sprd_gpio_direction_input
	.comm	_sprd_gpio_direction_output,4,2 ## @sprd_gpio_direction_output
	.comm	_sprd_gpio_irqchip,4,2          ## @sprd_gpio_irqchip
	.comm	_handle_bad_irq,4,2             ## @handle_bad_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_sprd_gpio_irq_handler,4,2      ## @sprd_gpio_irq_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not register gpiochip %d\n"

	.no_dead_strip	_sprd_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_gpio_probe
_sprd_gpio_probe:                       ; @sprd_gpio_probe
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x20]
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x20, #116]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [x20, #116]
	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	_PTR_ERR
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_5:
	mov	x21, x0
	b	LBB0_9
LBB0_6:
	add	x0, x20, #112
	bl	_spin_lock_init
	mov	x0, x19
	bl	_dev_name
Lloh6:
	adrp	x8, _SPRD_GPIO_NR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPRD_GPIO_NR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #104]
	mov	w8, #-1
	mov	x1, x20
	str	w8, [x1, #8]!
	str	x19, [x20, #96]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _sprd_gpio_request@GOTPAGE
Lloh10:
	ldr	x9, [x9, _sprd_gpio_request@GOTPAGEOFF]
	str	w8, [x20, #88]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _sprd_gpio_free@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sprd_gpio_free@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #80]
Lloh15:
	adrp	x8, _sprd_gpio_get@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sprd_gpio_get@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _sprd_gpio_set@GOTPAGE
Lloh19:
	ldr	x9, [x9, _sprd_gpio_set@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #72]
Lloh21:
	adrp	x8, _sprd_gpio_direction_input@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sprd_gpio_direction_input@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _sprd_gpio_direction_output@GOTPAGE
Lloh25:
	ldr	x9, [x9, _sprd_gpio_direction_output@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _sprd_gpio_irqchip@GOTPAGE
Lloh28:
	ldr	x10, [x10, _sprd_gpio_irqchip@GOTPAGEOFF]
	stp	w9, w8, [x20, #64]
	str	x10, [x20, #56]
Lloh29:
	adrp	x8, _handle_bad_irq@GOTPAGE
Lloh30:
	ldr	x8, [x8, _handle_bad_irq@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x20, #48]
Lloh32:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _sprd_gpio_irq_handler@GOTPAGE
Lloh36:
	ldr	x9, [x9, _sprd_gpio_irq_handler@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
	mov	w8, #1
	str	w8, [x20, #16]
	stp	x20, x20, [x20, #24]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	tbnz	w0, #31, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_9
LBB0_8:
	mov	x21, x0
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_9:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SPRD_GPIO_NR,4,2               ; @SPRD_GPIO_NR
	.comm	_sprd_gpio_request,4,2          ; @sprd_gpio_request
	.comm	_sprd_gpio_free,4,2             ; @sprd_gpio_free
	.comm	_sprd_gpio_get,4,2              ; @sprd_gpio_get
	.comm	_sprd_gpio_set,4,2              ; @sprd_gpio_set
	.comm	_sprd_gpio_direction_input,4,2  ; @sprd_gpio_direction_input
	.comm	_sprd_gpio_direction_output,4,2 ; @sprd_gpio_direction_output
	.comm	_sprd_gpio_irqchip,4,2          ; @sprd_gpio_irqchip
	.comm	_handle_bad_irq,4,2             ; @handle_bad_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_sprd_gpio_irq_handler,4,2      ; @sprd_gpio_irq_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not register gpiochip %d\n"

	.no_dead_strip	_sprd_gpio_probe
.subsections_via_symbols
