	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nmk_pinctrl_probe
_nmk_pinctrl_probe:                     ## @nmk_pinctrl_probe
	.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	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_nmk_pinctrl_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %r12d
	movq	_PINCTRL_NMK_STN8815@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_7
## %bb.6:
	leaq	16(%r14), %rdi
	callq	_nmk_pinctrl_stn8815_init
LBB0_7:
	movq	_PINCTRL_NMK_DB8500@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_9
## %bb.8:
	leaq	16(%r14), %rdi
	callq	_nmk_pinctrl_db8500_init
LBB0_9:
	movq	_PINCTRL_NMK_DB8540@GOTPCREL(%rip), %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r12d, (%rax)
	jne	LBB0_11
## %bb.10:
	leaq	16(%r14), %rdi
	callq	_nmk_pinctrl_db8540_init
LBB0_11:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_NMK_MAX_BANKS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_18
## %bb.12:
	leaq	L_.str(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	callq	_of_node_put
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r14d
	movq	_NMK_MAX_BANKS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %r13
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_nmk_gpio_populate_chip
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_16
LBB0_18:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 24(%r14)
	jmp	LBB0_21
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_19:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	24(%r14), %eax
LBB0_21:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_24
## %bb.22:
	movq	_PINCTRL_NMK_STN8815@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_27
## %bb.23:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_24:
	movq	16(%r14), %rax
	movl	4(%rax), %ecx
	movq	_nmk_pinctrl_desc@GOTPCREL(%rip), %rsi
	movl	%ecx, 4(%rsi)
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_devm_pinctrl_register
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_25
## %bb.28:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	(%r14), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_25:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.7(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_26
LBB0_27:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_26:
	movl	%r14d, %eax
	addq	$24, %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	_nmk_pinctrl_match,4,2          ## @nmk_pinctrl_match
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PINCTRL_NMK_STN8815,4,2        ## @PINCTRL_NMK_STN8815
	.comm	_PINCTRL_NMK_DB8500,4,2         ## @PINCTRL_NMK_DB8500
	.comm	_PINCTRL_NMK_DB8540,4,2         ## @PINCTRL_NMK_DB8540
	.comm	_NMK_MAX_BANKS,4,2              ## @NMK_MAX_BANKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nomadik-gpio-chips"

L_.str.1:                               ## @.str.1
	.asciz	"populate NMK GPIO %d \"%pOFn\"\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not populate nmk chip struct - continue anyway\n"

L_.str.3:                               ## @.str.3
	.asciz	"prcm"

L_.str.4:                               ## @.str.4
	.asciz	"No PRCM base, assuming no ALT-Cx control is available\n"

L_.str.5:                               ## @.str.5
	.asciz	"missing PRCM base address\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nmk_pinctrl_desc,8,2           ## @nmk_pinctrl_desc
L_.str.6:                               ## @.str.6
	.asciz	"could not register Nomadik pinctrl driver\n"

L_.str.7:                               ## @.str.7
	.asciz	"initialized Nomadik pin control driver\n"

	.no_dead_strip	_nmk_pinctrl_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nmk_pinctrl_probe
_nmk_pinctrl_probe:                     ; @nmk_pinctrl_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _nmk_pinctrl_match@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nmk_pinctrl_match@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_18
; %bb.2:
	ldr	w27, [x0]
Lloh6:
	adrp	x8, _PINCTRL_NMK_STN8815@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PINCTRL_NMK_STN8815@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w27
	b.ne	LBB0_4
; %bb.3:
	add	x0, x20, #16
	bl	_nmk_pinctrl_stn8815_init
LBB0_4:
Lloh9:
	adrp	x8, _PINCTRL_NMK_DB8500@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PINCTRL_NMK_DB8500@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w27
	b.ne	LBB0_6
; %bb.5:
	add	x0, x20, #16
	bl	_nmk_pinctrl_db8500_init
LBB0_6:
Lloh12:
	adrp	x8, _PINCTRL_NMK_DB8540@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PINCTRL_NMK_DB8540@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w27
	b.ne	LBB0_8
; %bb.7:
	add	x0, x20, #16
	bl	_nmk_pinctrl_db8540_init
LBB0_8:
Lloh15:
	adrp	x28, _NMK_MAX_BANKS@GOTPAGE
Lloh16:
	ldr	x28, [x28, _NMK_MAX_BANKS@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.9:
	mov	w22, #0
Lloh17:
	adrp	x23, l_.str@PAGE
Lloh18:
	add	x23, x23, l_.str@PAGEOFF
Lloh19:
	adrp	x24, l_.str.1@PAGE
Lloh20:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh21:
	adrp	x25, l_.str.2@PAGE
Lloh22:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
	bl	_of_node_put
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w22, w22, #1
	ldr	w8, [x28]
	cmp	w22, w8
	b.ge	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_of_parse_phandle
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x26, x0
	stp	x22, x0, [sp]
	mov	x0, x19
	mov	x1, x24
	bl	_dev_info
	mov	x0, x26
	mov	x1, x19
	bl	_nmk_gpio_populate_chip
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_dev_err
	b	LBB0_10
LBB0_15:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_19
; %bb.16:
	mov	w1, #0
	bl	_of_iomap
	str	w0, [x20, #24]
	cbnz	w0, LBB0_22
	b	LBB0_20
LBB0_17:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_26
LBB0_18:
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_26
LBB0_19:
	ldr	w0, [x20, #24]
	cbnz	w0, LBB0_22
LBB0_20:
Lloh29:
	adrp	x8, _PINCTRL_NMK_STN8815@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PINCTRL_NMK_STN8815@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, w27
	b.ne	LBB0_25
; %bb.21:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_22:
	ldr	x8, [x20, #16]
	ldr	d0, [x8]
Lloh34:
	adrp	x1, _nmk_pinctrl_desc@GOTPAGE
Lloh35:
	ldr	x1, [x1, _nmk_pinctrl_desc@GOTPAGEOFF]
	str	d0, [x1]
	str	x19, [x20, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_pinctrl_register
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_24
; %bb.23:
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_24:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_27
LBB0_25:
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_27:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nmk_pinctrl_match,4,2          ; @nmk_pinctrl_match
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PINCTRL_NMK_STN8815,4,2        ; @PINCTRL_NMK_STN8815
	.comm	_PINCTRL_NMK_DB8500,4,2         ; @PINCTRL_NMK_DB8500
	.comm	_PINCTRL_NMK_DB8540,4,2         ; @PINCTRL_NMK_DB8540
	.comm	_NMK_MAX_BANKS,4,2              ; @NMK_MAX_BANKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nomadik-gpio-chips"

l_.str.1:                               ; @.str.1
	.asciz	"populate NMK GPIO %d \"%pOFn\"\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not populate nmk chip struct - continue anyway\n"

l_.str.3:                               ; @.str.3
	.asciz	"prcm"

l_.str.4:                               ; @.str.4
	.asciz	"No PRCM base, assuming no ALT-Cx control is available\n"

l_.str.5:                               ; @.str.5
	.asciz	"missing PRCM base address\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nmk_pinctrl_desc,8,2           ; @nmk_pinctrl_desc
l_.str.6:                               ; @.str.6
	.asciz	"could not register Nomadik pinctrl driver\n"

l_.str.7:                               ; @.str.7
	.asciz	"initialized Nomadik pin control driver\n"

	.no_dead_strip	_nmk_pinctrl_probe
.subsections_via_symbols
