	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spics_gpio_probe
_spics_gpio_probe:                      ## @spics_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	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 76(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.14:
	movl	76(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	leaq	72(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	leaq	68(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	leaq	64(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	leaq	60(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	leaq	56(%rbx), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_8
LBB0_11:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	_NUM_OF_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %r15
	addq	$8, %r15
	movl	%eax, 52(%rbx)
	movl	$-1, 8(%rbx)
	movq	_spics_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_spics_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_spics_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_spics_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_spics_get_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_spics_set_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$-1, (%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st-spics,peripcfg-reg"

L_.str.1:                               ## @.str.1
	.asciz	"st-spics,sw-enable-bit"

L_.str.2:                               ## @.str.2
	.asciz	"st-spics,cs-value-bit"

L_.str.3:                               ## @.str.3
	.asciz	"st-spics,cs-enable-mask"

L_.str.4:                               ## @.str.4
	.asciz	"st-spics,cs-enable-shift"

	.comm	_NUM_OF_GPIO,4,2                ## @NUM_OF_GPIO
	.comm	_spics_request,4,2              ## @spics_request
	.comm	_spics_free,4,2                 ## @spics_free
	.comm	_spics_direction_input,4,2      ## @spics_direction_input
	.comm	_spics_direction_output,4,2     ## @spics_direction_output
	.comm	_spics_get_value,4,2            ## @spics_get_value
	.comm	_spics_set_value,4,2            ## @spics_set_value
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.5:                               ## @.str.5
	.asciz	"unable to add gpio chip\n"

L_.str.6:                               ## @.str.6
	.asciz	"spear spics registered\n"

L_.str.7:                               ## @.str.7
	.asciz	"DT probe failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_spics_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spics_gpio_probe
_spics_gpio_probe:                      ; @spics_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
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x20, #76]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #76]
	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_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	add	x2, x20, #72
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbnz	x0, LBB0_9
; %bb.5:
	add	x2, x20, #68
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbnz	x0, LBB0_9
; %bb.6:
	add	x2, x20, #64
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbnz	x0, LBB0_9
; %bb.7:
	add	x2, x20, #60
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbnz	x0, LBB0_9
; %bb.8:
	add	x2, x20, #56
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_12
LBB0_9:
Lloh15:
	adrp	x1, l_.str.7@PAGE
Lloh16:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	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
	ret
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh19:
	adrp	x8, _NUM_OF_GPIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NUM_OF_GPIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #52]
	mov	w22, #-1
	mov	x21, x20
	str	w22, [x21, #8]!
Lloh22:
	adrp	x8, _spics_request@GOTPAGE
Lloh23:
	ldr	x8, [x8, _spics_request@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _spics_free@GOTPAGE
Lloh26:
	ldr	x9, [x9, _spics_free@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #44]
Lloh28:
	adrp	x8, _spics_direction_input@GOTPAGE
Lloh29:
	ldr	x8, [x8, _spics_direction_input@GOTPAGEOFF]
Lloh30:
	adrp	x9, _spics_direction_output@GOTPAGE
Lloh31:
	ldr	x9, [x9, _spics_direction_output@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #36]
Lloh34:
	adrp	x8, _spics_get_value@GOTPAGE
Lloh35:
	ldr	x8, [x8, _spics_get_value@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _spics_set_value@GOTPAGE
Lloh38:
	ldr	x9, [x9, _spics_set_value@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #28]
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #24]
	str	x19, [x20, #16]
Lloh40:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	str	w22, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.13:
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_14:
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st-spics,peripcfg-reg"

l_.str.1:                               ; @.str.1
	.asciz	"st-spics,sw-enable-bit"

l_.str.2:                               ; @.str.2
	.asciz	"st-spics,cs-value-bit"

l_.str.3:                               ; @.str.3
	.asciz	"st-spics,cs-enable-mask"

l_.str.4:                               ; @.str.4
	.asciz	"st-spics,cs-enable-shift"

	.comm	_NUM_OF_GPIO,4,2                ; @NUM_OF_GPIO
	.comm	_spics_request,4,2              ; @spics_request
	.comm	_spics_free,4,2                 ; @spics_free
	.comm	_spics_direction_input,4,2      ; @spics_direction_input
	.comm	_spics_direction_output,4,2     ; @spics_direction_output
	.comm	_spics_get_value,4,2            ; @spics_get_value
	.comm	_spics_set_value,4,2            ; @spics_set_value
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.5:                               ; @.str.5
	.asciz	"unable to add gpio chip\n"

l_.str.6:                               ; @.str.6
	.asciz	"spear spics registered\n"

l_.str.7:                               ; @.str.7
	.asciz	"DT probe failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_spics_gpio_probe
.subsections_via_symbols
