	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rza2_gpio_register
_rza2_gpio_register:                    ## @rza2_gpio_register
	.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, %r15
	movq	8(%rdi), %rdi
	movq	(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	callq	_devm_kasprintf
	movq	_chip@GOTPCREL(%rip), %r14
	movl	%eax, 8(%r14)
	movq	%rbx, 24(%r14)
	movq	8(%r15), %rax
	movq	%rax, 16(%r14)
	movq	(%r15), %rax
	movq	%rax, (%r14)
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %r8
	movq	%rbx, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_of_parse_phandle_with_fixed_args
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_2:
	movq	-32(%rbp), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rax)
	jne	LBB0_5
## %bb.4:
	movq	16(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	movq	$0, 56(%r15)
	movq	%rax, 16(%r15)
	movl	8(%r14), %eax
	movl	%eax, 32(%r15)
	movq	%r14, 24(%r15)
	movq	8(%r15), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_devm_gpiochip_add_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	16(%r15), %rsi
	movl	64(%r15), %edi
	callq	_pinctrl_add_gpio_range
	movq	8(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%pOFn"

	.comm	_chip,32,3                      ## @chip
L_.str.1:                               ## @.str.1
	.asciz	"gpio-ranges"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to parse gpio-ranges\n"

L_.str.3:                               ## @.str.3
	.asciz	"gpio-ranges does not match selected SOC\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"Registered gpio controller\n"

	.no_dead_strip	_rza2_gpio_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rza2_gpio_register
_rza2_gpio_register:                    ; @rza2_gpio_register
	.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	x19, x0
	ldr	x0, [x0, #8]
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_devm_kasprintf
Lloh5:
	adrp	x20, _chip@GOTPAGE
Lloh6:
	ldr	x20, [x20, _chip@GOTPAGEOFF]
	str	w0, [x20, #8]
	ldp	x9, x8, [x19]
	stp	x8, x21, [x20, #16]
	str	x9, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x4, sp, #8
	mov	x0, x21
	mov	w2, #3
	mov	w3, #0
	bl	_of_parse_phandle_with_fixed_args
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_2:
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
	cbnz	x9, LBB0_7
; %bb.3:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_7
; %bb.4:
	ldr	x8, [x8, #16]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	x21, x19
	str	x8, [x21, #16]!
	stp	xzr, xzr, [x19, #40]
	str	xzr, [x19, #56]
	ldr	w8, [x20, #8]
	str	w8, [x19, #32]
	str	x20, [x19, #24]
	ldr	x0, [x19, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_devm_gpiochip_add_data
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	w0, [x19, #64]
	mov	x1, x21
	bl	_pinctrl_add_gpio_range
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	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
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%pOFn"

	.comm	_chip,32,3                      ; @chip
l_.str.1:                               ; @.str.1
	.asciz	"gpio-ranges"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to parse gpio-ranges\n"

l_.str.3:                               ; @.str.3
	.asciz	"gpio-ranges does not match selected SOC\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"Registered gpio controller\n"

	.no_dead_strip	_rza2_gpio_register
.subsections_via_symbols
