	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pinctrl_register_map           ## -- Begin function pinctrl_register_map
	.p2align	4, 0x90
_pinctrl_register_map:                  ## @pinctrl_register_map
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.1:
	movl	%r15d, %r12d
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pinconf_validate_map
	testl	%eax, %eax
	js	LBB0_11
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	addq	$16, %r14
	cmpq	%rbx, %r12
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 12(%r14)
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r14), %esi
	testl	%esi, %esi
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 8(%r14)
	je	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %eax
	jne	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pinmux_validate_map
	testl	%eax, %eax
	jns	LBB0_3
LBB0_11:
	movl	%eax, %r13d
	jmp	LBB0_27
LBB0_12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.14:
	shll	$4, %r15d
	movl	(%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_kmemdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_20
## %bb.15:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_17:
	movl	4(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_24
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_25
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
LBB0_20:
	movq	_pinctrl_maps_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	addq	$4, %rbx
	movq	_pinctrl_maps@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%r13d, %r13d
	jmp	LBB0_27
LBB0_21:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.4(%rip), %rdi
LBB0_24:
	xorl	%r13d, %r13d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_26:
	subl	(%rax), %r13d
LBB0_27:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add %u pinctrl maps\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to register map %s (%d): no device given\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"failed to register map %d: no map name given\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to register map %s (%d): no pin control device given\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to register map %s (%d): invalid type given\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pinctrl_maps_mutex,4,2         ## @pinctrl_maps_mutex
	.comm	_pinctrl_maps,4,2               ## @pinctrl_maps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pinctrl_register_map           ; -- Begin function pinctrl_register_map
	.p2align	2
_pinctrl_register_map:                  ; @pinctrl_register_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	cbz	w20, LBB0_11
; %bb.1:
	mov	x22, #0
	mov	w24, w20
	mov	x23, x19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_pinconf_validate_map
	tbnz	w0, #31, LBB0_24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	add	x23, x23, #16
	cmp	x24, x22
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #12]
	cbz	w8, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23, #4]
	cbz	w1, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x23, #8]
	cbz	w9, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.ne	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_pinmux_validate_map
	tbz	w0, #31, LBB0_3
	b	LBB0_24
LBB0_11:
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.12:
	mov	x22, x0
	str	w20, [x0]
	cbz	w21, LBB0_18
; %bb.13:
	lsl	w1, w20, #4
	ldr	w2, [x23]
	mov	x0, x19
	bl	_kmemdup
	str	x0, [x22, #8]
	cbnz	x0, LBB0_19
; %bb.14:
	mov	x0, x22
	bl	_kfree
LBB0_15:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_23
LBB0_16:
	ldr	w1, [x23, #4]
	str	x22, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_17:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	b	LBB0_22
LBB0_18:
	str	x19, [x22, #8]
LBB0_19:
Lloh10:
	adrp	x19, _pinctrl_maps_mutex@GOTPAGE
Lloh11:
	ldr	x19, [x19, _pinctrl_maps_mutex@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x22, #4
Lloh12:
	adrp	x1, _pinctrl_maps@GOTPAGE
Lloh13:
	ldr	x1, [x1, _pinctrl_maps@GOTPAGEOFF]
	bl	_list_add_tail
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_24
LBB0_20:
	str	x22, [sp]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_21:
	str	x22, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_22:
	bl	_pr_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add %u pinctrl maps\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to register map %s (%d): no device given\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"failed to register map %d: no map name given\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to register map %s (%d): no pin control device given\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to register map %s (%d): invalid type given\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pinctrl_maps_mutex,4,2         ; @pinctrl_maps_mutex
	.comm	_pinctrl_maps,4,2               ; @pinctrl_maps
.subsections_via_symbols
