	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pinctrl_register_one_pin
_pinctrl_register_one_pin:              ## @pinctrl_register_one_pin
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %esi
	callq	_pin_desc_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	12(%r14), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	movq	%r14, 24(%rax)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, 8(%r15)
	jmp	LBB0_10
LBB0_7:
	movl	(%r12), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_kasprintf
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	$1, (%r15)
LBB0_10:
	movl	4(%rbx), %eax
	movl	%eax, 16(%r15)
	leaq	8(%r14), %rdi
	movl	(%rbx), %esi
	movq	%r15, %rdx
	callq	_radix_tree_insert
	movl	(%rbx), %esi
	movq	8(%r15), %rdx
	movq	(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_kfree
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pin %d already registered\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"PIN%u"

L_.str.2:                               ## @.str.2
	.asciz	"registered pin %d (%s) on %s\n"

	.no_dead_strip	_pinctrl_register_one_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pinctrl_register_one_pin
_pinctrl_register_one_pin:              ; @pinctrl_register_one_pin
	.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, x1
	mov	x19, x0
	ldr	w1, [x1]
	bl	_pin_desc_get
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
Lloh4:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	str	x19, [x0, #24]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	str	x8, [x21, #8]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x22]
	ldr	w2, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_kasprintf
	str	x0, [x21, #8]
	cbz	x0, LBB0_8
; %bb.6:
	mov	w8, #1
	str	w8, [x21]
LBB0_7:
	ldp	w1, w8, [x20]
	str	w8, [x21, #16]
	add	x0, x19, #8
	mov	x2, x21
	bl	_radix_tree_insert
	ldr	w1, [x20]
	ldr	x2, [x21, #8]
	ldr	x8, [x19]
	ldr	w3, [x8]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	mov	x0, x21
	bl	_kfree
LBB0_9:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pin %d already registered\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"PIN%u"

l_.str.2:                               ; @.str.2
	.asciz	"registered pin %d (%s) on %s\n"

	.no_dead_strip	_pinctrl_register_one_pin
.subsections_via_symbols
