	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atlas7_pin_config_set
_atlas7_pin_config_set:                 ## @atlas7_pin_config_set
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.1:
	movl	%esi, %ebx
	movl	%esi, %r14d
	movl	%ecx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_atlas7_ioc_pads@GOTPCREL(%rip), %r13
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%r12,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	(%rbx,%r12,8), %rdi
	callq	_pinconf_to_config_argument
	movl	%eax, %r12d
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %edx
	leaq	L_.str(%rip), %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_pr_debug
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	leal	-128(%r15), %eax
	cmpl	$4, %eax
	ja	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_HIGH_HYSTERESIS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_altas7_pinctrl_set_drive_strength_sel
	jmp	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PULL_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PULL_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_HIGH_Z@GOTPCREL(%rip), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_altas7_pinctrl_set_pull_sel
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	movq	_atlas7_ioc_pads@GOTPCREL(%rip), %r13
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	(%rax,%r14,4), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r12d, %r8d
	callq	_pr_debug
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	incq	%r12
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PMX CFG###### ATLAS7 PIN#%d [%s] CONFIG PARAM:%d ARG:%d >>>>>\n"

	.comm	_atlas7_ioc_pads,8,3            ## @atlas7_ioc_pads
	.comm	_PULL_UP,4,2                    ## @PULL_UP
	.comm	_PULL_DOWN,4,2                  ## @PULL_DOWN
	.comm	_HIGH_HYSTERESIS,4,2            ## @HIGH_HYSTERESIS
	.comm	_HIGH_Z,4,2                     ## @HIGH_Z
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"PMX CFG###### ATLAS7 PIN#%d [%s] CONFIG PARAM:%d ARG:%d <<<<\n"

	.no_dead_strip	_atlas7_pin_config_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atlas7_pin_config_set
_atlas7_pin_config_set:                 ; @atlas7_pin_config_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w3, LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w26, w1
Lloh0:
	adrp	x27, _atlas7_ioc_pads@GOTPAGE
Lloh1:
	ldr	x27, [x27, _atlas7_ioc_pads@GOTPAGEOFF]
	mov	w28, w3
Lloh2:
	adrp	x22, lJTI0_0@PAGE
Lloh3:
	add	x22, x22, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh6:
	adrp	x8, _PULL_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PULL_UP@GOTPAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_altas7_pinctrl_set_pull_sel
	cbnz	w0, LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27]
	ldr	w2, [x8, x26, lsl #2]
	mov	x0, x23
	mov	x1, x20
	mov	x3, x24
	mov	x4, x25
	bl	_pr_debug
	add	x19, x19, #8
	subs	x28, x28, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x24, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_argument
	mov	x25, x0
	ldr	x8, [x27]
	ldr	w2, [x8, x26, lsl #2]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x24
	mov	x4, x25
	bl	_pr_debug
	sub	w8, w24, #128
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x22, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x8, _HIGH_HYSTERESIS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HIGH_HYSTERESIS@GOTPAGEOFF]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	bl	_altas7_pinctrl_set_drive_strength_sel
	cbz	w0, LBB0_4
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh12:
	adrp	x8, _PULL_DOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PULL_DOWN@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x8, _HIGH_Z@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HIGH_Z@GOTPAGEOFF]
	b	LBB0_3
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh16:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PMX CFG###### ATLAS7 PIN#%d [%s] CONFIG PARAM:%d ARG:%d >>>>>\n"

	.comm	_atlas7_ioc_pads,8,3            ; @atlas7_ioc_pads
	.comm	_PULL_UP,4,2                    ; @PULL_UP
	.comm	_PULL_DOWN,4,2                  ; @PULL_DOWN
	.comm	_HIGH_HYSTERESIS,4,2            ; @HIGH_HYSTERESIS
	.comm	_HIGH_Z,4,2                     ; @HIGH_Z
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"PMX CFG###### ATLAS7 PIN#%d [%s] CONFIG PARAM:%d ARG:%d <<<<\n"

	.no_dead_strip	_atlas7_pin_config_set
.subsections_via_symbols
