	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sh_pfc_register_gpiochip       ## -- Begin function sh_pfc_register_gpiochip
	.p2align	4, 0x90
_sh_pfc_register_gpiochip:              ## @sh_pfc_register_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %r8
	movq	16(%r8), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	xorl	%r14d, %r14d
	movl	$0, %ecx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.2:
	movq	(%rsi), %rsi
	movq	64(%rbx), %rdi
	addq	$8, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	addq	$16, %rdi
	cmpq	%rcx, %rdx
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rdi), %rax
	cmpq	%rax, %rsi
	jl	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	(%rdi), %rax
	cmpq	%rax, %rsi
	jge	LBB0_3
LBB0_6:
	cmpl	%edx, %ecx
	je	LBB0_14
## %bb.7:
	movq	8(%rbx), %rax
	cmpq	(%r8), %rax
	jne	LBB0_12
## %bb.8:
	movq	_gpio_pin_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %edx
	shlq	$4, %rdx
	addq	64(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_sh_pfc_add_gpiochip
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	xorl	%r14d, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	40(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_13:
	movq	%r15, 56(%rbx)
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid number of IRQ resources\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_gpio_pin_setup,4,2             ## @gpio_pin_setup
	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.comm	_gpio_function_setup,4,2        ## @gpio_function_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sh_pfc_register_gpiochip       ; -- Begin function sh_pfc_register_gpiochip
	.p2align	2
_sh_pfc_register_gpiochip:              ; @sh_pfc_register_gpiochip
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #32]
	ldr	x11, [x8, #16]
	cbz	x11, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	w10, [x0]
	cbz	w10, LBB0_7
; %bb.2:
	mov	x9, #0
	ldr	x11, [x11]
	ldr	x12, [x19, #64]
	add	x12, x12, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	x12, x12, #16
	cmp	x10, x9
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x12, #-8]
	cmp	x11, x13
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x12]
	add	x13, x14, x13
	cmp	x11, x13
	b.ge	LBB0_3
; %bb.6:
	cmp	w9, w10
	b.ne	LBB0_8
	b	LBB0_13
LBB0_7:
	mov	w9, #0
	cmp	w9, w10
	b.eq	LBB0_13
LBB0_8:
	ldr	x10, [x19, #8]
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_11
; %bb.9:
Lloh0:
	adrp	x8, _gpio_pin_setup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gpio_pin_setup@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x19, #64]
	add	x2, x8, w9, uxtw #4
	mov	x0, x19
	bl	_sh_pfc_add_gpiochip
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_11:
	ldr	x0, [x19, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_12:
	str	x20, [x19, #56]
Lloh8:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_IS_ENABLED
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid number of IRQ resources\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_gpio_pin_setup,4,2             ; @gpio_pin_setup
	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.comm	_gpio_function_setup,4,2        ; @gpio_function_setup
.subsections_via_symbols
