	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsta_probe
_gsta_probe:                            ## @gsta_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_dev_get_platdata
	movq	(%rax), %r14
	leaq	4(%r14), %rdi
	callq	_dev_get_platdata
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_pr_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, 32(%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.22:
	movq	24(%r12), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_GSTA_NR_BLOCKS@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_8
## %bb.6:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	andl	$-4096, %eax                    ## imm = 0xF000
	leaq	(%rax,%rax,2), %rax
	shlq	$2, %rax
	addq	24(%r12), %rax
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	16(%r12), %rax
	movq	(%rax,%r14,8), %rsi
	addq	$8, %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	16(%r12), %rax
	movq	(%rax,%r14,8), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	16(%r12), %rax
	movq	(%rax,%r14,8), %rsi
	movl	$-1, %edi
	callq	_writel
	incq	%r14
	movslq	(%rbx), %rax
	addq	$4096, %r13                     ## imm = 0x1000
	cmpq	%rax, %r14
	jl	LBB0_7
LBB0_8:
	leaq	8(%r12), %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	callq	_gsta_gpio_setup
	movq	_GSTA_NR_GPIO@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testq	%r15, %r15
	je	LBB0_12
## %bb.9:
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_gsta_set_config
	incq	%rbx
	movslq	(%r14), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_11
LBB0_12:
	movq	_NUMA_NO_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$384, %edx                      ## imm = 0x180
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_devm_irq_alloc_descs
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movl	%r15d, (%r12)
	movq	%r12, %rdi
	callq	_gsta_alloc_irq_chip
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	_gsta_gpio_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_16
## %bb.18:
	movq	%r12, %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	js	LBB0_19
## %bb.20:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_13:
	movl	%r15d, %edx
	negl	%edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	jmp	LBB0_21
LBB0_16:
	movl	%eax, %r15d
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_17
LBB0_19:
	movl	%eax, %r15d
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.4(%rip), %rsi
LBB0_17:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no gpio config\n"

L_.str.1:                               ## @.str.1
	.asciz	"gpio config: %p\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GSTA_NR_BLOCKS,4,2             ## @GSTA_NR_BLOCKS
	.comm	_GSTA_NR_GPIO,4,2               ## @GSTA_NR_GPIO
	.comm	_NUMA_NO_NODE,4,2               ## @NUMA_NO_NODE
L_.str.2:                               ## @.str.2
	.asciz	"sta2x11 gpio: Can't get irq base (%i)\n"

	.comm	_gsta_gpio_handler,4,2          ## @gsta_gpio_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
L_.str.3:                               ## @.str.3
	.asciz	"sta2x11 gpio: Can't request irq (%i)\n"

L_.str.4:                               ## @.str.4
	.asciz	"sta2x11 gpio: Can't register (%i)\n"

	.no_dead_strip	_gsta_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsta_probe
_gsta_probe:                            ; @gsta_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_dev_get_platdata
	ldr	x23, [x0]
	add	x0, x23, #4
	bl	_dev_get_platdata
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	str	x19, [x0, #32]
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x0, [x20, #24]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
Lloh10:
	adrp	x22, _GSTA_NR_BLOCKS@GOTPAGE
Lloh11:
	ldr	x22, [x22, _GSTA_NR_BLOCKS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x24, #0
	mov	x25, #0
	mov	w26, #12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	and	x8, x24, #0xfffff000
	ldp	x10, x9, [x20, #16]
	madd	x8, x8, x26, x9
	lsl	x27, x25, #3
	str	x8, [x10, x27]
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x27]
	add	x1, x8, #8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x27]
	add	x1, x8, #4
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #16]
	ldr	x1, [x8, x27]
	mov	w0, #-1
	bl	_writel
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #1, lsl #12           ; =4096
	cmp	x25, x8
	b.lt	LBB0_9
LBB0_10:
	add	x0, x20, #8
	bl	_spin_lock_init
	mov	x0, x20
	bl	_gsta_gpio_setup
Lloh12:
	adrp	x24, _GSTA_NR_GPIO@GOTPAGE
Lloh13:
	ldr	x24, [x24, _GSTA_NR_GPIO@GOTPAGEOFF]
	ldr	w3, [x24]
	cbz	x21, LBB0_14
; %bb.11:
	cmp	w3, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w2, [x8, x22, lsl #2]
	mov	x0, x20
	mov	x1, x22
	bl	_gsta_set_config
	add	x22, x22, #1
	ldrsw	x3, [x24]
	cmp	x22, x3
	b.lt	LBB0_13
LBB0_14:
Lloh14:
	adrp	x8, _NUMA_NO_NODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NUMA_NO_NODE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #384
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_devm_irq_alloc_descs
	mov	x21, x0
	tbnz	w0, #31, LBB0_19
; %bb.15:
	str	w21, [x20]
	mov	x0, x20
	bl	_gsta_alloc_irq_chip
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.16:
	ldr	w1, [x23]
Lloh17:
	adrp	x8, _gsta_gpio_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _gsta_gpio_handler@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x5, x20
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_20
; %bb.17:
	add	x1, x20, #4
	mov	x0, x19
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	tbnz	w0, #31, LBB0_21
; %bb.18:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_6
LBB0_19:
	neg	w2, w21
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_6
LBB0_20:
	mov	x21, x0
	neg	w8, w0
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_21:
	mov	x21, x0
	neg	w8, w0
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_22:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no gpio config\n"

l_.str.1:                               ; @.str.1
	.asciz	"gpio config: %p\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GSTA_NR_BLOCKS,4,2             ; @GSTA_NR_BLOCKS
	.comm	_GSTA_NR_GPIO,4,2               ; @GSTA_NR_GPIO
	.comm	_NUMA_NO_NODE,4,2               ; @NUMA_NO_NODE
l_.str.2:                               ; @.str.2
	.asciz	"sta2x11 gpio: Can't get irq base (%i)\n"

	.comm	_gsta_gpio_handler,4,2          ; @gsta_gpio_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
l_.str.3:                               ; @.str.3
	.asciz	"sta2x11 gpio: Can't request irq (%i)\n"

l_.str.4:                               ; @.str.4
	.asciz	"sta2x11 gpio: Can't register (%i)\n"

	.no_dead_strip	_gsta_probe
.subsections_via_symbols
