	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rza1_parse_gpiochip
_rza1_parse_gpiochip:                   ## @rza1_parse_gpiochip
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %r8
	movq	%r13, %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
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_dev_err
	jmp	LBB0_9
LBB0_2:
	movq	-56(%rbp), %rax
	movl	4(%rax), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_RZA1_PIN_ID_TO_PORT
	movl	%eax, %ebx
	movq	_RZA1_NPORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jae	LBB0_3
## %bb.4:
	movq	_rza1_gpiochip_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm0, (%r12)
	movups	%xmm1, 16(%r12)
	movl	$-1, (%r12)
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rcx
	callq	_devm_kasprintf
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	-56(%rbp), %rcx
	movl	8(%rcx), %edx
	movl	%edx, 4(%r12)
	movq	%r13, 24(%r12)
	movl	(%r14), %edi
	movl	%edi, 16(%r12)
	movl	%ebx, (%r15)
	movq	%rax, 32(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%r15)
	movl	%eax, 24(%r15)
	movl	8(%rcx), %eax
	movl	%eax, 16(%r15)
	movq	%r12, 8(%r15)
	movl	%ebx, %edx
	shlq	$2, %rdx
	addq	8(%r14), %rdx
	movq	%r12, %rsi
	callq	_devm_gpiochip_add_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	4(%r14), %edi
	movq	%r15, %rsi
	callq	_pinctrl_add_gpio_range
	movl	(%r14), %edi
	movq	8(%r12), %rdx
	movl	4(%r12), %ecx
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio-ranges"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to parse %s list property\n"

	.comm	_RZA1_NPORTS,4,2                ## @RZA1_NPORTS
L_.str.2:                               ## @.str.2
	.asciz	"Invalid values in property %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rza1_gpiochip_template,32,3    ## @rza1_gpiochip_template
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"%pOFn"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"Parsed gpiochip %s with %d pins\n"

	.no_dead_strip	_rza1_parse_gpiochip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rza1_parse_gpiochip
_rza1_parse_gpiochip:                   ; @rza1_parse_gpiochip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #8
	mov	x0, x22
	mov	w2, #3
	mov	w3, #0
	bl	_of_parse_phandle_with_fixed_args
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_2:
	ldr	x8, [sp, #8]
	ldr	w23, [x8, #4]
	mov	x0, x23
	bl	_RZA1_PIN_ID_TO_PORT
Lloh6:
	adrp	x8, _RZA1_NPORTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RZA1_NPORTS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_6
; %bb.3:
	mov	x24, x0
Lloh9:
	adrp	x8, _rza1_gpiochip_template@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rza1_gpiochip_template@GOTPAGEOFF]
	ldp	q1, q0, [x8]
	stp	q1, q0, [x19]
	mov	w8, #-1
	str	w8, [x19]
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x22
	bl	_devm_kasprintf
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x9, [sp, #8]
	ldr	w8, [x9, #8]
	str	w8, [x19, #4]
	str	x22, [x19, #24]
	ldr	w8, [x20]
	str	w8, [x19, #16]
	str	w24, [x21]
	str	x0, [x21, #32]
	stp	w23, w23, [x21, #20]
	ldr	w9, [x9, #8]
	str	w9, [x21, #16]
	str	x19, [x21, #8]
	ldr	x9, [x20, #8]
	add	x2, x9, w24, uxtw #2
	mov	x0, x8
	mov	x1, x19
	bl	_devm_gpiochip_add_data
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	w0, [x20, #4]
	mov	x1, x21
	bl	_pinctrl_add_gpio_range
	ldr	w0, [x20]
	ldr	x2, [x19, #8]
	ldr	w3, [x19, #4]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	b	LBB0_9
LBB0_6:
	ldr	w0, [x20]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	bl	_dev_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio-ranges"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to parse %s list property\n"

	.comm	_RZA1_NPORTS,4,2                ; @RZA1_NPORTS
l_.str.2:                               ; @.str.2
	.asciz	"Invalid values in property %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rza1_gpiochip_template,32,3    ; @rza1_gpiochip_template
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"%pOFn"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"Parsed gpiochip %s with %d pins\n"

	.no_dead_strip	_rza1_parse_gpiochip
.subsections_via_symbols
