	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sirfsoc_pinmux_probe
_sirfsoc_pinmux_probe:                  ## @sirfsoc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, 16(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_sirfsoc_rsc_of_iomap
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_pinmux_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_node
	movq	(%rax), %rax
	movl	20(%rax), %ecx
	movq	_sirfsoc_pin_groups@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	16(%rax), %ecx
	movq	_sirfsoc_pingrp_cnt@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	12(%rax), %ecx
	movq	_sirfsoc_pmx_functions@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	8(%rax), %ecx
	movq	_sirfsoc_pmxfunc_cnt@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %ecx
	movq	_sirfsoc_pinmux_desc@GOTPCREL(%rip), %rdi
	movl	%ecx, 4(%rdi)
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_pinctrl_register
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_iounmap
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_8:
	movl	(%r14), %edi
	callq	_iounmap
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't map gpio registers\n"

L_.str.1:                               ## @.str.1
	.asciz	"can't map rsc registers\n"

	.comm	_pinmux_ids,4,2                 ## @pinmux_ids
	.comm	_sirfsoc_pin_groups,4,2         ## @sirfsoc_pin_groups
	.comm	_sirfsoc_pingrp_cnt,4,2         ## @sirfsoc_pingrp_cnt
	.comm	_sirfsoc_pmx_functions,4,2      ## @sirfsoc_pmx_functions
	.comm	_sirfsoc_pmxfunc_cnt,4,2        ## @sirfsoc_pmxfunc_cnt
	.comm	_sirfsoc_pinmux_desc,8,2        ## @sirfsoc_pinmux_desc
L_.str.2:                               ## @.str.2
	.asciz	"could not register SIRFSOC pinmux driver\n"

L_.str.3:                               ## @.str.3
	.asciz	"initialized SIRFSOC pinmux driver\n"

	.no_dead_strip	_sirfsoc_pinmux_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sirfsoc_pinmux_probe
_sirfsoc_pinmux_probe:                  ; @sirfsoc_pinmux_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x21
	mov	w1, #0
	bl	_of_iomap
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.2:
	bl	_sirfsoc_rsc_of_iomap
	str	w0, [x19, #4]
	cbz	w0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _pinmux_ids@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pinmux_ids@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_of_match_node
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _sirfsoc_pin_groups@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sirfsoc_pin_groups@GOTPAGEOFF]
	ldp	w11, w10, [x8, #16]
Lloh8:
	str	w10, [x9]
Lloh9:
	adrp	x9, _sirfsoc_pingrp_cnt@GOTPAGE
Lloh10:
	ldr	x9, [x9, _sirfsoc_pingrp_cnt@GOTPAGEOFF]
Lloh11:
	str	w11, [x9]
Lloh12:
	adrp	x9, _sirfsoc_pmx_functions@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sirfsoc_pmx_functions@GOTPAGEOFF]
	ldp	w11, w10, [x8, #8]
Lloh14:
	adrp	x12, _sirfsoc_pmxfunc_cnt@GOTPAGE
Lloh15:
	ldr	x12, [x12, _sirfsoc_pmxfunc_cnt@GOTPAGEOFF]
Lloh16:
	str	w10, [x9]
Lloh17:
	str	w11, [x12]
	ldr	d0, [x8]
Lloh18:
	adrp	x0, _sirfsoc_pinmux_desc@GOTPAGE
Lloh19:
	ldr	x0, [x0, _sirfsoc_pinmux_desc@GOTPAGEOFF]
	str	d0, [x0]
	mov	x1, x20
	mov	x2, x19
	bl	_pinctrl_register
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_iounmap
	b	LBB0_8
LBB0_5:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_6:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_7:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w21, w8
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_8:
	ldr	w0, [x19]
	bl	_iounmap
	b	LBB0_10
LBB0_9:
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't map gpio registers\n"

l_.str.1:                               ; @.str.1
	.asciz	"can't map rsc registers\n"

	.comm	_pinmux_ids,4,2                 ; @pinmux_ids
	.comm	_sirfsoc_pin_groups,4,2         ; @sirfsoc_pin_groups
	.comm	_sirfsoc_pingrp_cnt,4,2         ; @sirfsoc_pingrp_cnt
	.comm	_sirfsoc_pmx_functions,4,2      ; @sirfsoc_pmx_functions
	.comm	_sirfsoc_pmxfunc_cnt,4,2        ; @sirfsoc_pmxfunc_cnt
	.comm	_sirfsoc_pinmux_desc,8,2        ; @sirfsoc_pinmux_desc
l_.str.2:                               ; @.str.2
	.asciz	"could not register SIRFSOC pinmux driver\n"

l_.str.3:                               ; @.str.3
	.asciz	"initialized SIRFSOC pinmux driver\n"

	.no_dead_strip	_sirfsoc_pinmux_probe
.subsections_via_symbols
