	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pinctrl_init_controller
_pinctrl_init_controller:               ## @pinctrl_init_controller
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r12
	cmpl	$0, 28(%rdi)
	je	LBB0_1
## %bb.4:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movl	24(%r12), %eax
	movl	%eax, 56(%r15)
	movq	%r12, 48(%r15)
	movq	%rbx, 40(%r15)
	leaq	32(%r15), %rdi
	movl	(%r13), %esi
	callq	_INIT_RADIX_TREE
	leaq	20(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, 8(%r15)
	movq	%r15, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_pinctrl_check_ops
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_14:
	movq	%r15, %rdi
	callq	_mutex_destroy
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	cmpq	$0, 16(%r12)
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_pinmux_check_ops
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_10:
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_pinconf_check_ops
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_12:
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_pinctrl_register_pins
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_pinctrl_free_pindescs
	jmp	LBB0_14
LBB0_16:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pinctrl ops lacks necessary functions\n"

L_.str.1:                               ## @.str.1
	.asciz	"try to register %d pins ...\n"

L_.str.2:                               ## @.str.2
	.asciz	"error during pin registration\n"

	.no_dead_strip	_pinctrl_init_controller
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pinctrl_init_controller
_pinctrl_init_controller:               ; @pinctrl_init_controller
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x22, x2
	mov	x20, x1
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	ldr	w8, [x21, #24]
	str	w8, [x0, #56]
	stp	x22, x21, [x0, #40]
	add	x0, x0, #32
	ldr	w1, [x23]
	bl	_INIT_RADIX_TREE
	add	x0, x19, #20
	bl	_INIT_LIST_HEAD
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_mutex_init
	mov	x0, x19
	bl	_pinctrl_check_ops
	cbz	w0, LBB0_10
; %bb.4:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x19
	bl	_mutex_destroy
	mov	x0, x19
	bl	_kfree
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	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
	b	_ERR_PTR
LBB0_9:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_pinmux_check_ops
	mov	x22, x0
	cbnz	w0, LBB0_5
LBB0_12:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_pinconf_check_ops
	mov	x22, x0
	cbnz	w0, LBB0_5
LBB0_14:
	ldr	w2, [x21]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldp	w2, w1, [x21]
	mov	x0, x19
	bl	_pinctrl_register_pins
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldp	w2, w1, [x21]
	mov	x0, x19
	bl	_pinctrl_free_pindescs
	b	LBB0_5
LBB0_16:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pinctrl ops lacks necessary functions\n"

l_.str.1:                               ; @.str.1
	.asciz	"try to register %d pins ...\n"

l_.str.2:                               ; @.str.2
	.asciz	"error during pin registration\n"

	.no_dead_strip	_pinctrl_init_controller
.subsections_via_symbols
