	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loongson_gpio_probe
_loongson_gpio_probe:                   ## @loongson_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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movq	$0, 32(%rax)
	movq	_LOONGSON_N_GPIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_loongson_gpio_get_value@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_loongson_gpio_set_value@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_loongson_gpio_direction_input@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_loongson_gpio_direction_output@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rax, %rdi
	xorl	%esi, %esi
	popq	%rbp
	jmp	_gpiochip_add_data              ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.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	"loongson-gpio-chip"

	.comm	_LOONGSON_N_GPIO,4,2            ## @LOONGSON_N_GPIO
	.comm	_loongson_gpio_get_value,4,2    ## @loongson_gpio_get_value
	.comm	_loongson_gpio_set_value,4,2    ## @loongson_gpio_set_value
	.comm	_loongson_gpio_direction_input,4,2 ## @loongson_gpio_direction_input
	.comm	_loongson_gpio_direction_output,4,2 ## @loongson_gpio_direction_output
	.no_dead_strip	_loongson_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loongson_gpio_probe
_loongson_gpio_probe:                   ; @loongson_gpio_probe
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	str	xzr, [x0, #32]
Lloh5:
	adrp	x8, _LOONGSON_N_GPIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOONGSON_N_GPIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh8:
	adrp	x8, _loongson_gpio_get_value@GOTPAGE
Lloh9:
	ldr	x8, [x8, _loongson_gpio_get_value@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _loongson_gpio_set_value@GOTPAGE
Lloh12:
	ldr	x9, [x9, _loongson_gpio_set_value@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh14:
	adrp	x8, _loongson_gpio_direction_input@GOTPAGE
Lloh15:
	ldr	x8, [x8, _loongson_gpio_direction_input@GOTPAGEOFF]
Lloh16:
	adrp	x9, _loongson_gpio_direction_output@GOTPAGE
Lloh17:
	ldr	x9, [x9, _loongson_gpio_direction_output@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	mov	x1, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_gpiochip_add_data
LBB0_2:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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	"loongson-gpio-chip"

	.comm	_LOONGSON_N_GPIO,4,2            ; @LOONGSON_N_GPIO
	.comm	_loongson_gpio_get_value,4,2    ; @loongson_gpio_get_value
	.comm	_loongson_gpio_set_value,4,2    ; @loongson_gpio_set_value
	.comm	_loongson_gpio_direction_input,4,2 ; @loongson_gpio_direction_input
	.comm	_loongson_gpio_direction_output,4,2 ; @loongson_gpio_direction_output
	.no_dead_strip	_loongson_gpio_probe
.subsections_via_symbols
