	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_pinctrl_add_pins
_sprd_pinctrl_add_pins:                 ## @sprd_pinctrl_add_pins
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %r13
	movl	%edx, (%r13)
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %esi
	movl	$32, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.2:
	movq	_PINCTRL_REG_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	xorl	%r8d, %r8d
	movl	$24, %esi
	movq	_GLOBAL_CTRL_PIN@GOTPCREL(%rip), %rcx
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-16(%r15,%rsi), %edi
	imull	%r12d, %edi
	addq	8(%r14), %rdi
	movq	%rdi, -16(%rbx,%rsi)
	movl	-8(%r15,%rsi), %edi
	movl	%edi, -4(%rbx,%rsi)
	movl	-12(%r15,%rsi), %edi
	movl	%edi, -8(%rbx,%rsi)
	incl	%r11d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r8
	addq	$32, %rsi
	cmpq	%r8, %rax
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rsi), %edi
	movl	%edi, 4(%rbx,%rsi)
	movq	-24(%r15,%rsi), %r9
	movq	%r9, -24(%rbx,%rsi)
	movl	-4(%r15,%rsi), %edi
	movl	%edi, (%rbx,%rsi)
	cmpq	(%rcx), %r9
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_COMMON_PIN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r9
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PINCTRL_REG_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	addq	8(%r14), %rdi
	movl	%r8d, %edx
	subl	%r11d, %edx
	imull	%r12d, %edx
	addq	%rdi, %rdx
	movq	%rdx, -16(%rbx,%rsi)
	incl	%r10d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_MISC_PIN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r9
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PINCTRL_REG_MISC_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	8(%r14), %rdx
	movq	%rcx, %r9
	movl	%r8d, %ecx
	subl	%r10d, %ecx
	subl	%r11d, %ecx
	imull	%r12d, %ecx
	addq	%rdx, %rcx
	movq	%rcx, -16(%rbx,%rsi)
	movq	%r9, %rcx
	jmp	LBB0_9
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_10:
	addq	$28, %rbx
	leaq	L_.str(%rip), %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	(%rbx), %edx
	movl	-4(%rbx), %ecx
	movl	-8(%rbx), %r9d
	movl	-12(%rbx), %eax
	movq	-28(%rbx), %r8
	movq	%r12, %rsi
	pushq	-20(%rbx)
	pushq	%rax
	callq	_dev_dbg
	addq	$16, %rsp
	incl	%r15d
	addq	$32, %rbx
	cmpl	(%r13), %r15d
	jl	LBB0_11
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GLOBAL_CTRL_PIN,8,3            ## @GLOBAL_CTRL_PIN
	.comm	_PINCTRL_REG_LEN,4,2            ## @PINCTRL_REG_LEN
	.comm	_COMMON_PIN,8,3                 ## @COMMON_PIN
	.comm	_PINCTRL_REG_OFFSET,8,3         ## @PINCTRL_REG_OFFSET
	.comm	_MISC_PIN,8,3                   ## @MISC_PIN
	.comm	_PINCTRL_REG_MISC_OFFSET,8,3    ## @PINCTRL_REG_MISC_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pin name[%s-%d], type = %d, bit offset = %ld, bit width = %ld, reg = 0x%lx\n"

	.no_dead_strip	_sprd_pinctrl_add_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_pinctrl_add_pins
_sprd_pinctrl_add_pins:                 ; @sprd_pinctrl_add_pins
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	str	w2, [x21]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x2
	mov	w2, #32
	bl	_devm_kcalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w13, [x21]
	cmp	w13, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x8, #0
	mov	w9, #0
	mov	w10, #0
	mov	w11, #0
Lloh3:
	adrp	x12, _PINCTRL_REG_LEN@GOTPAGE
Lloh4:
	ldr	x12, [x12, _PINCTRL_REG_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	lsl	x13, x13, #5
Lloh6:
	adrp	x14, _GLOBAL_CTRL_PIN@GOTPAGE
Lloh7:
	ldr	x14, [x14, _GLOBAL_CTRL_PIN@GOTPAGEOFF]
Lloh8:
	adrp	x15, _COMMON_PIN@GOTPAGE
Lloh9:
	ldr	x15, [x15, _COMMON_PIN@GOTPAGEOFF]
Lloh10:
	adrp	x16, _PINCTRL_REG_OFFSET@GOTPAGE
Lloh11:
	ldr	x16, [x16, _PINCTRL_REG_OFFSET@GOTPAGEOFF]
Lloh12:
	adrp	x17, _MISC_PIN@GOTPAGE
Lloh13:
	ldr	x17, [x17, _MISC_PIN@GOTPAGEOFF]
Lloh14:
	adrp	x1, _PINCTRL_REG_MISC_OFFSET@GOTPAGE
Lloh15:
	ldr	x1, [x1, _PINCTRL_REG_MISC_OFFSET@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x2, #8]
	ldr	x5, [x19, #8]
	mul	w3, w12, w3
	add	x3, x5, x3
	str	x3, [x4, #8]
	ldur	d0, [x2, #12]
	str	d0, [x4, #16]
	add	w11, w11, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w9, #1
	add	x8, x8, #32
	cmp	x13, x8
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, x20, x8
	ldr	x3, [x2]
	add	x4, x0, x8
	str	x3, [x4]
	ldur	d0, [x2, #20]
	str	d0, [x4, #24]
	ldr	x5, [x14]
	cmp	x3, x5
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x15]
	cmp	x3, x2
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x19, #8]
	ldr	x3, [x16]
	sub	w4, w9, w11
	mul	w4, w12, w4
	add	x2, x3, x2
	add	x2, x2, x4
	add	x3, x0, x8
	str	x2, [x3, #8]
	add	w10, w10, #1
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x17]
	cmp	x3, x2
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x19, #8]
	ldr	x3, [x1]
	add	w4, w10, w11
	sub	w4, w9, w4
	mul	w4, w12, w4
	add	x2, x3, x2
	add	x2, x2, x4
	add	x3, x0, x8
	str	x2, [x3, #8]
	b	LBB0_4
LBB0_10:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_11:
	mov	w22, #0
	add	x23, x0, #16
Lloh19:
	adrp	x20, l_.str@PAGE
Lloh20:
	add	x20, x20, l_.str@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldp	w3, w2, [x23, #8]
	ldp	w6, w5, [x23]
	ldp	x4, x7, [x23, #-16]
	mov	x1, x20
	bl	_dev_dbg
	add	w22, w22, #1
	ldr	w8, [x21]
	add	x23, x23, #32
	cmp	w22, w8
	b.lt	LBB0_12
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GLOBAL_CTRL_PIN,8,3            ; @GLOBAL_CTRL_PIN
	.comm	_PINCTRL_REG_LEN,4,2            ; @PINCTRL_REG_LEN
	.comm	_COMMON_PIN,8,3                 ; @COMMON_PIN
	.comm	_PINCTRL_REG_OFFSET,8,3         ; @PINCTRL_REG_OFFSET
	.comm	_MISC_PIN,8,3                   ; @MISC_PIN
	.comm	_PINCTRL_REG_MISC_OFFSET,8,3    ; @PINCTRL_REG_MISC_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pin name[%s-%d], type = %d, bit offset = %ld, bit width = %ld, reg = 0x%lx\n"

	.no_dead_strip	_sprd_pinctrl_add_pins
.subsections_via_symbols
