	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ls1x_gpio_probe
_ls1x_gpio_probe:                       ## @ls1x_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	%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, %r15
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	_gpio_reg_base@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%rbx), %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_7
LBB0_3:
	movq	_GPIO_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	%rbx, %rcx
	movq	_GPIO_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	addq	%rbx, %r8
	movq	_GPIO_DIR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rbx
	pushq	$0
	callq	_bgpio_init
	addq	$32, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_ls1x_gpio_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_ls1x_gpio_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r15), %eax
	shll	$5, %eax
	movl	%eax, (%r12)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_devm_gpiochip_add_data
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r13d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gpio_reg_base,8,3              ## @gpio_reg_base
	.comm	_GPIO_DATA,8,3                  ## @GPIO_DATA
	.comm	_GPIO_OUTPUT,8,3                ## @GPIO_OUTPUT
	.comm	_GPIO_DIR,8,3                   ## @GPIO_DIR
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ls1x_gpio_request,4,2          ## @ls1x_gpio_request
	.comm	_ls1x_gpio_free,4,2             ## @ls1x_gpio_free
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Loongson1 GPIO driver registered\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to register GPIO device\n"

	.no_dead_strip	_ls1x_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ls1x_gpio_probe
_ls1x_gpio_probe:                       ; @ls1x_gpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	add	x19, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
Lloh3:
	adrp	x22, _gpio_reg_base@GOTPAGE
Lloh4:
	ldr	x22, [x22, _gpio_reg_base@GOTPAGEOFF]
	str	x0, [x22]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22]
	cbz	x8, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _GPIO_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIO_DATA@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x3, x8, x0
Lloh11:
	adrp	x8, _GPIO_OUTPUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIO_OUTPUT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x4, x8, x0
Lloh14:
	adrp	x8, _GPIO_DIR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GPIO_DIR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x7, x8, x0
	str	wzr, [sp]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #4
	mov	x5, #0
	mov	x6, #0
	bl	_bgpio_init
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _ls1x_gpio_request@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ls1x_gpio_request@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _ls1x_gpio_free@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ls1x_gpio_free@GOTPAGEOFF]
	stp	w9, w8, [x21, #8]
Lloh25:
	ldr	w8, [x10]
	ldr	w9, [x20]
	lsl	w9, w9, #5
	stp	w9, w8, [x21]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_devm_gpiochip_add_data
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_6:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gpio_reg_base,8,3              ; @gpio_reg_base
	.comm	_GPIO_DATA,8,3                  ; @GPIO_DATA
	.comm	_GPIO_OUTPUT,8,3                ; @GPIO_OUTPUT
	.comm	_GPIO_DIR,8,3                   ; @GPIO_DIR
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ls1x_gpio_request,4,2          ; @ls1x_gpio_request
	.comm	_ls1x_gpio_free,4,2             ; @ls1x_gpio_free
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Loongson1 GPIO driver registered\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to register GPIO device\n"

	.no_dead_strip	_ls1x_gpio_probe
.subsections_via_symbols
