	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_gpiolib_register
_rockchip_gpiolib_register:             ## @rockchip_gpiolib_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	%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, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r13
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.1:
	movq	8(%r13), %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	28(%rbx), %edx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	addq	$48, %rbx
	cmpl	(%r13), %r15d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 24(%rbx)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	28(%rbx), %rax
	movq	36(%rbx), %rcx
	movq	%rcx, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movl	%eax, %r12d
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_dev_err
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.8:
	addq	$-48, %rbx
	incl	%r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	decl	%r15d
	addq	$-48, %rbx
	cmpl	$1, %r15d
	jle	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 24(%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_gpiochip_remove
	jmp	LBB0_11
LBB0_5:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_rockchip_interrupts_register
	xorl	%r12d, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %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	"bank %s is not valid\n"

	.comm	_rockchip_gpiolib_chip,24,3     ## @rockchip_gpiolib_chip
L_.str.1:                               ## @.str.1
	.asciz	"failed to register gpio_chip %s, error code: %d\n"

	.no_dead_strip	_rockchip_gpiolib_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_gpiolib_register
_rockchip_gpiolib_register:             ; @rockchip_gpiolib_register
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	ldr	x25, [x1]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w24, #0
	ldr	x8, [x25, #8]
	sub	x19, x8, #48
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x19, #76]
	mov	x0, x20
	mov	x1, x23
	bl	_dev_warn
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	ldr	w8, [x25]
	add	x19, x19, #48
	cmp	w24, w8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #72]
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x19, #48
	ldur	d0, [x19, #76]
	mov	x0, x19
	str	d0, [x0, #48]!
	ldur	d0, [x0, #36]
	str	d0, [x0, #16]
	str	x20, [x0, #8]
	bl	_gpiochip_add_data
	cbz	w0, LBB0_3
; %bb.6:
	mov	x22, x0
	ldr	w2, [x19, #48]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_dev_err
	cbz	w24, LBB0_12
; %bb.7:
	add	w20, w24, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	w20, w20, #1
	sub	x19, x19, #48
	cmp	w20, #1
	b.le	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_gpiochip_remove
	b	LBB0_8
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	bl	_rockchip_interrupts_register
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bank %s is not valid\n"

	.comm	_rockchip_gpiolib_chip,24,3     ; @rockchip_gpiolib_chip
l_.str.1:                               ; @.str.1
	.asciz	"failed to register gpio_chip %s, error code: %d\n"

	.no_dead_strip	_rockchip_gpiolib_register
.subsections_via_symbols
