	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns2_pinmux_probe
_ns2_pinmux_probe:                      ## @ns2_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
	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	_ns2_pins@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%r14, 72(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r13, %rdi
	addq	$64, %rdi
	callq	_spin_lock_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 56(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	56(%r13), %rdi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_ioremap_nocache
	movl	%eax, 48(%r13)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	40(%r13), %rdi
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r13, %rdi
	callq	_ns2_mux_log_init
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_24
LBB0_14:
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	$16, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.15:
	movq	%rax, %r12
	testl	%ebx, %ebx
	movq	_ns2_pins@GOTPCREL(%rip), %r9
	je	LBB0_22
## %bb.16:
	movl	%ebx, %edx
	movl	%ebx, %r8d
	andl	$1, %r8d
	cmpq	$1, %rdx
	jne	LBB0_18
## %bb.17:
	xorl	%ecx, %ecx
	jmp	LBB0_20
LBB0_18:
	subq	%r8, %rdx
	movl	$8, %esi
	xorl	%ecx, %ecx
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rdi
	movl	4(%rdi,%rcx,8), %ebx
	movl	%ebx, -4(%r12,%rsi,2)
	movl	(%rdi,%rcx,8), %ebx
	movl	%ebx, -8(%r12,%rsi,2)
	leaq	-8(%rdi,%rsi), %rdi
	movq	%rdi, -16(%r12,%rsi,2)
	movq	(%r9), %rdi
	leaq	(%rdi,%rsi), %rbx
	movl	4(%rdi,%rsi), %eax
	movl	%eax, 12(%r12,%rsi,2)
	movl	(%rdi,%rsi), %eax
	movl	%eax, 8(%r12,%rsi,2)
	movq	%rbx, (%r12,%rsi,2)
	addq	$2, %rcx
	addq	$16, %rsi
	cmpq	%rcx, %rdx
	jne	LBB0_19
LBB0_20:
	testq	%r8, %r8
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_22
## %bb.21:
	movq	(%r9), %rax
	leaq	(%rax,%rcx,8), %rdx
	movl	4(%rax,%rcx,8), %esi
	movq	%rcx, %rdi
	shlq	$4, %rdi
	movl	%esi, 12(%r12,%rdi)
	movl	(%rax,%rcx,8), %eax
	movl	%eax, 8(%r12,%rdi)
	movq	%rdx, (%r12,%rdi)
LBB0_22:
	movq	_ns2_pin_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%r13)
	movq	_ns2_pin_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%r13)
	movq	_ns2_pinctrl_desc@GOTPCREL(%rip), %rdi
	movq	%r12, 8(%rdi)
	movl	%ebx, (%rdi)
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_pinctrl_register
	movq	%rax, (%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.25:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	(%r13), %rdi
	jmp	LBB0_5
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_ns2_pins,8,3                   ## @ns2_pins
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to map I/O space\n"

L_.str.1:                               ## @.str.1
	.asciz	"unable to initialize IOMUX log\n"

	.comm	_ns2_pin_groups,8,3             ## @ns2_pin_groups
	.comm	_ns2_pin_functions,8,3          ## @ns2_pin_functions
	.comm	_ns2_pinctrl_desc,16,3          ## @ns2_pinctrl_desc
L_.str.2:                               ## @.str.2
	.asciz	"unable to register IOMUX pinctrl\n"

	.no_dead_strip	_ns2_pinmux_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns2_pinmux_probe
_ns2_pinmux_probe:                      ; @ns2_pinmux_probe
	.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	x19, x0
Lloh0:
	adrp	x23, _ns2_pins@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ns2_pins@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	mov	x21, x0
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #72]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x0, x20, #64
	bl	_spin_lock_init
Lloh4:
	adrp	x25, _IORESOURCE_MEM@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #56]
LBB0_3:
	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
	b	_PTR_ERR
LBB0_4:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w22, [x0]
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap_nocache
	str	w0, [x20, #48]
	cbz	w0, LBB0_9
; %bb.6:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #2
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.7:
	ldr	x0, [x20, #40]
	b	LBB0_3
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
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
LBB0_13:
	mov	x0, x20
	bl	_ns2_mux_log_init
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_15:
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #16
	bl	_devm_kcalloc
	cbz	x0, LBB0_10
; %bb.16:
	mov	x22, x0
	cbz	w21, LBB0_19
; %bb.17:
	mov	x8, #0
	and	x10, x21, #0xffffffff
	add	x9, x22, #8
	lsl	x10, x10, #3
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x23]
	ldr	d0, [x11, x8]
	add	x11, x11, x8
	str	d0, [x9]
	stur	x11, [x9, #-8]
	add	x8, x8, #8
	add	x9, x9, #16
	cmp	x10, x8
	b.ne	LBB0_18
LBB0_19:
Lloh14:
	adrp	x8, _ns2_pin_groups@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ns2_pin_groups@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	str	x0, [x20, #32]
	bl	_ARRAY_SIZE
Lloh17:
	adrp	x8, _ns2_pin_functions@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ns2_pin_functions@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	stp	x8, x0, [x20, #16]
	mov	x0, x8
	bl	_ARRAY_SIZE
	str	x0, [x20, #8]
Lloh20:
	adrp	x0, _ns2_pinctrl_desc@GOTPAGE
Lloh21:
	ldr	x0, [x0, _ns2_pinctrl_desc@GOTPAGEOFF]
	str	x22, [x0, #8]
	str	w21, [x0]
	mov	x1, x19
	mov	x2, x20
	bl	_pinctrl_register
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.20:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20]
	b	LBB0_3
LBB0_21:
	mov	w22, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ns2_pins,8,3                   ; @ns2_pins
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to map I/O space\n"

l_.str.1:                               ; @.str.1
	.asciz	"unable to initialize IOMUX log\n"

	.comm	_ns2_pin_groups,8,3             ; @ns2_pin_groups
	.comm	_ns2_pin_functions,8,3          ; @ns2_pin_functions
	.comm	_ns2_pinctrl_desc,16,3          ; @ns2_pinctrl_desc
l_.str.2:                               ; @.str.2
	.asciz	"unable to register IOMUX pinctrl\n"

	.no_dead_strip	_ns2_pinmux_probe
.subsections_via_symbols
