	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_pctrl_dt_node_to_map_func
_stm32_pctrl_dt_node_to_map_func:       ## @stm32_pctrl_dt_node_to_map_func
	.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	16(%rbp), %r13
	movl	(%r13), %eax
	cmpl	(%r9), %eax
	jne	LBB0_3
## %bb.1:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%r8, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_PIN_MAP_TYPE_MUX_GROUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	(%r8), %rsi
	leaq	(%rax,%rax,2), %rax
	movl	%edx, 8(%rsi,%rax,4)
	movl	(%rcx), %eax
	movl	(%r13), %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, 4(%rsi,%rcx,4)
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_stm32_pctrl_is_function_valid
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_stm32_gpio_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %eax
	movq	(%r15), %rcx
	movl	(%r13), %edx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incl	(%r13)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_PIN_MAP_TYPE_MUX_GROUP,4,2     ## @PIN_MAP_TYPE_MUX_GROUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid function %d on pin %d .\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_stm32_gpio_functions,8,3       ## @stm32_gpio_functions
	.no_dead_strip	_stm32_pctrl_dt_node_to_map_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_pctrl_dt_node_to_map_func
_stm32_pctrl_dt_node_to_map_func:       ; @stm32_pctrl_dt_node_to_map_func
	.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
	ldr	w8, [x6]
	ldr	w9, [x5]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x19, x6
	mov	x22, x4
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh2:
	adrp	x9, _PIN_MAP_TYPE_MUX_GROUP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PIN_MAP_TYPE_MUX_GROUP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	x10, [x4]
	mov	w11, #12
	madd	x8, x8, x11, x10
	str	w9, [x8, #8]
	ldr	w8, [x3]
	ldr	w9, [x6]
	madd	x9, x9, x11, x10
	str	w8, [x9, #4]
	bl	_stm32_pctrl_is_function_valid
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #0
Lloh5:
	adrp	x8, _stm32_gpio_functions@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stm32_gpio_functions@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w8, [x8, x20, lsl #2]
	ldr	x9, [x22]
	ldr	w10, [x19]
	mov	w11, #12
	mul	x10, x10, x11
	str	w8, [x9, x10]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x23]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_PIN_MAP_TYPE_MUX_GROUP,4,2     ; @PIN_MAP_TYPE_MUX_GROUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid function %d on pin %d .\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_stm32_gpio_functions,8,3       ; @stm32_gpio_functions
	.no_dead_strip	_stm32_pctrl_dt_node_to_map_func
.subsections_via_symbols
