	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cygnus_pinmux_probe
_cygnus_pinmux_probe:                   ## @cygnus_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	_cygnus_pins@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, 64(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r13, %rdi
	addq	$56, %rdi
	callq	_spin_lock_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 48(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	48(%r13), %rdi
	jmp	LBB0_4
LBB0_5:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %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_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	40(%r13), %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	%r13, %rdi
	callq	_cygnus_mux_log_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_9:
	movl	(%r15), %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.10:
	movq	%rax, %r15
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.11:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %rax
	addq	$12, %rax
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	leaq	(%rsi,%rdx), %rdi
	movl	8(%rsi,%rdx), %ebx
	movl	%ebx, (%rax)
	movl	4(%rsi,%rdx), %esi
	movl	%esi, -4(%rax)
	movq	%rdi, -12(%rax)
	addq	$12, %rdx
	addq	$16, %rax
	cmpq	%rdx, %rcx
	jne	LBB0_12
LBB0_13:
	movq	_cygnus_pin_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%r13)
	movq	_cygnus_pin_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%r13)
	movq	_cygnus_pinctrl_desc@GOTPCREL(%rip), %rsi
	movq	%r15, 8(%rsi)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rsi)
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_devm_pinctrl_register
	movq	%rax, (%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	(%r13), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_cygnus_pins,8,3                ## @cygnus_pins
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.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	_cygnus_pin_groups,8,3          ## @cygnus_pin_groups
	.comm	_cygnus_pin_functions,8,3       ## @cygnus_pin_functions
	.comm	_cygnus_pinctrl_desc,16,3       ## @cygnus_pinctrl_desc
L_.str.2:                               ## @.str.2
	.asciz	"unable to register Cygnus IOMUX pinctrl\n"

	.no_dead_strip	_cygnus_pinmux_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cygnus_pinmux_probe
_cygnus_pinmux_probe:                   ; @cygnus_pinmux_probe
	.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	x19, x0
Lloh0:
	adrp	x23, _cygnus_pins@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cygnus_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, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #64]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x0, x20, #56
	bl	_spin_lock_init
Lloh4:
	adrp	x22, _IORESOURCE_MEM@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #48]
	b	LBB0_5
LBB0_3:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #40]
LBB0_5:
	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
	b	_PTR_ERR
LBB0_6:
	mov	x0, x20
	bl	_cygnus_mux_log_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_8:
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #16
	bl	_devm_kcalloc
	cbz	x0, LBB0_14
; %bb.9:
	mov	x22, x0
	cbz	w21, LBB0_12
; %bb.10:
	mov	x8, #0
	and	x10, x21, #0xffffffff
	add	x9, x22, #8
	add	x10, x10, w21, uxtw #1
	lsl	x10, x10, #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x23]
	add	x11, x11, x8
	ldur	d0, [x11, #4]
	str	d0, [x9]
	stur	x11, [x9, #-8]
	add	x8, x8, #12
	add	x9, x9, #16
	cmp	x10, x8
	b.ne	LBB0_11
LBB0_12:
Lloh12:
	adrp	x8, _cygnus_pin_groups@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cygnus_pin_groups@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	str	x0, [x20, #32]
	bl	_ARRAY_SIZE
Lloh15:
	adrp	x8, _cygnus_pin_functions@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cygnus_pin_functions@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	stp	x8, x0, [x20, #16]
	mov	x0, x8
	bl	_ARRAY_SIZE
	str	x0, [x20, #8]
Lloh18:
	adrp	x1, _cygnus_pinctrl_desc@GOTPAGE
Lloh19:
	ldr	x1, [x1, _cygnus_pinctrl_desc@GOTPAGEOFF]
	str	x22, [x1, #8]
	str	w21, [x1]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_pinctrl_register
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.13:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20]
	b	LBB0_5
LBB0_14:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x22
	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
LBB0_16:
	mov	w22, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_cygnus_pins,8,3                ; @cygnus_pins
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.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	_cygnus_pin_groups,8,3          ; @cygnus_pin_groups
	.comm	_cygnus_pin_functions,8,3       ; @cygnus_pin_functions
	.comm	_cygnus_pinctrl_desc,16,3       ; @cygnus_pinctrl_desc
l_.str.2:                               ; @.str.2
	.asciz	"unable to register Cygnus IOMUX pinctrl\n"

	.no_dead_strip	_cygnus_pinmux_probe
.subsections_via_symbols
