	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atlas7_pinmux_probe
_atlas7_pinmux_probe:                   ## @atlas7_pinmux_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, %r12
	movq	(%rdi), %r15
	movq	_ATLAS7_PINCTRL_REG_BANKS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_of_find_node_by_name
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_of_address_to_resource
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_of_node_put
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.3:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_devm_ioremap_resource
	movl	%eax, 72(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, 64(%r14)
	movq	_atlas7_ioc_data@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r14)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 16(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 52(%r14)
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_atlas7_pinctrl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	movq	_atlas7_pinmux_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	_atlas7_pinconf_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_of_iomap
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_10
LBB0_12:
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_pinctrl_register
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_15:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_7
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	callq	_iounmap
	incq	%rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_17
	jmp	LBB0_7
LBB0_19:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ATLAS7_PINCTRL_REG_BANKS,4,2   ## @ATLAS7_PINCTRL_REG_BANKS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sys2pci"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_atlas7_ioc_data,8,2            ## @atlas7_ioc_data
L_.str.1:                               ## @.str.1
	.asciz	"pinctrl-atlas7"

	.comm	_atlas7_pinctrl_ops,4,2         ## @atlas7_pinctrl_ops
	.comm	_atlas7_pinmux_ops,4,2          ## @atlas7_pinmux_ops
	.comm	_atlas7_pinconf_ops,4,2         ## @atlas7_pinconf_ops
L_.str.2:                               ## @.str.2
	.asciz	"can't map ioc bank#%d registers\n"

L_.str.3:                               ## @.str.3
	.asciz	"could not register atlas7 pinmux driver\n"

L_.str.4:                               ## @.str.4
	.asciz	"initialized atlas7 pinmux driver\n"

	.no_dead_strip	_atlas7_pinmux_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atlas7_pinmux_probe
_atlas7_pinmux_probe:                   ; @atlas7_pinmux_probe
	.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	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _ATLAS7_PINCTRL_REG_BANKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATLAS7_PINCTRL_REG_BANKS@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	bl	_of_find_node_by_name
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
	add	x2, sp, #8
	mov	w1, #0
	bl	_of_address_to_resource
	mov	x22, x0
	mov	x0, x23
	bl	_of_node_put
	cbnz	w22, LBB0_7
; %bb.3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
Lloh12:
	adrp	x8, l_.str.1@PAGE
Lloh13:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x22, x19
	str	x8, [x22, #16]!
Lloh14:
	adrp	x8, _atlas7_ioc_data@GOTPAGE
Lloh15:
	ldr	x8, [x8, _atlas7_ioc_data@GOTPAGEOFF]
	stp	x8, x20, [x22, #40]
	ldr	d0, [x8]
	str	d0, [x22, #32]
Lloh16:
	adrp	x8, _atlas7_pinctrl_ops@GOTPAGE
Lloh17:
	ldr	x8, [x8, _atlas7_pinctrl_ops@GOTPAGEOFF]
Lloh18:
	adrp	x9, _atlas7_pinmux_ops@GOTPAGE
Lloh19:
	ldr	x9, [x9, _atlas7_pinmux_ops@GOTPAGEOFF]
	str	x8, [x22, #24]
Lloh20:
	adrp	x8, _atlas7_pinconf_ops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _atlas7_pinconf_ops@GOTPAGEOFF]
	stp	x8, x9, [x22, #8]
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x23, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_of_iomap
	ldr	x8, [x19]
	str	w0, [x8, x23, lsl #2]
	cbz	w0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_10
LBB0_12:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_pinctrl_register
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.13:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_15
LBB0_14:
	str	x23, [sp]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	cmp	w24, #1
	b.lt	LBB0_7
; %bb.16:
	mov	x20, #0
	lsl	x21, x24, #2
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x20]
	cbz	w0, LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	bl	_iounmap
	add	x20, x20, #4
	cmp	x21, x20
	b.ne	LBB0_17
	b	LBB0_7
LBB0_19:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w22, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ATLAS7_PINCTRL_REG_BANKS,4,2   ; @ATLAS7_PINCTRL_REG_BANKS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sys2pci"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_atlas7_ioc_data,8,2            ; @atlas7_ioc_data
l_.str.1:                               ; @.str.1
	.asciz	"pinctrl-atlas7"

	.comm	_atlas7_pinctrl_ops,4,2         ; @atlas7_pinctrl_ops
	.comm	_atlas7_pinmux_ops,4,2          ; @atlas7_pinmux_ops
	.comm	_atlas7_pinconf_ops,4,2         ; @atlas7_pinconf_ops
l_.str.2:                               ; @.str.2
	.asciz	"can't map ioc bank#%d registers\n"

l_.str.3:                               ; @.str.3
	.asciz	"could not register atlas7 pinmux driver\n"

l_.str.4:                               ; @.str.4
	.asciz	"initialized atlas7 pinmux driver\n"

	.no_dead_strip	_atlas7_pinmux_probe
.subsections_via_symbols
