	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pic32_pinconf_set
_pic32_pinconf_set:                     ## @pic32_pinconf_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movl	%esi, %r14d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_pctl_to_bank
	movq	%rax, %rbx
	movl	%r14d, %edi
	subl	(%rax), %edi
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	callq	_BIT
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.1:
	movl	%r13d, %r13d
	leaq	LJTI0_0(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_pic32_gpio_direction_input
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	%r15, %r13
	je	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r15,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %ebx
	movq	(%r12,%r15,8), %rdi
	callq	_pinconf_to_config_argument
	leal	-128(%rbx), %ecx
	cmpl	$6, %ecx
	ja	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14,%rcx,4), %rcx
	addq	%r14, %rcx
	jmpq	*%rcx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_pic32_gpio_direction_output
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	_ANSEL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIC32_CLR
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	_ANSEL_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	_ODCU_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	_CNPU_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	_CNPD_REG@GOTPCREL(%rip), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	callq	_PIC32_SET
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%rax, %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_writel
	jmp	LBB0_14
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting pin %d bank %d mask 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"   pullup\n"

	.comm	_CNPU_REG,4,2                   ## @CNPU_REG
L_.str.2:                               ## @.str.2
	.asciz	"   pulldown\n"

	.comm	_CNPD_REG,4,2                   ## @CNPD_REG
L_.str.3:                               ## @.str.3
	.asciz	"   digital\n"

	.comm	_ANSEL_REG,4,2                  ## @ANSEL_REG
L_.str.4:                               ## @.str.4
	.asciz	"   analog\n"

L_.str.5:                               ## @.str.5
	.asciz	"   opendrain\n"

	.comm	_ODCU_REG,4,2                   ## @ODCU_REG
L_.str.6:                               ## @.str.6
	.asciz	"Property %u not supported\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_pic32_pinconf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pic32_pinconf_set
_pic32_pinconf_set:                     ; @pic32_pinconf_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x24, x3
	mov	x19, x2
	mov	x25, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x20, x0
	mov	x1, x25
	bl	_pctl_to_bank
	mov	x21, x0
	ldr	w8, [x0]
	sub	w22, w25, w8
	mov	x0, x22
	bl	_BIT
	mov	x23, x0
	ldr	w0, [x20]
	ldr	w8, [x21]
	stp	x8, x23, [sp, #8]
	str	x25, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	cbz	w24, LBB0_15
; %bb.1:
	mov	w25, w24
Lloh2:
	adrp	x26, lJTI0_0@PAGE
Lloh3:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x27, _ANSEL_REG@GOTPAGE
Lloh5:
	ldr	x27, [x27, _ANSEL_REG@GOTPAGEOFF]
Lloh6:
	adrp	x28, l_.str.2@PAGE
Lloh7:
	add	x28, x28, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_pic32_gpio_direction_input
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #8
	subs	x25, x25, #1
	b.eq	LBB0_15
LBB0_4:                                 ; =>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
	sub	w8, w24, #128
	cmp	w8, #6
	b.hi	LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_pic32_gpio_direction_output
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	x24, [x21, #8]
	ldr	w0, [x27]
	bl	_PIC32_CLR
	b	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	ldr	x24, [x21, #8]
	ldr	w0, [x27]
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	ldr	x24, [x21, #8]
Lloh14:
	adrp	x8, _ODCU_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ODCU_REG@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	x24, [x21, #8]
Lloh18:
	adrp	x8, _CNPU_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CNPU_REG@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	x1, x28
	bl	_dev_dbg
	ldr	x24, [x21, #8]
Lloh20:
	adrp	x8, _CNPD_REG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CNPD_REG@GOTPAGEOFF]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x8]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_PIC32_SET
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x0, x24
	mov	x0, x23
	bl	_writel
	b	LBB0_3
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	ldr	w0, [x20]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x24
	bl	_dev_err
Lloh24:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.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
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting pin %d bank %d mask 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"   pullup\n"

	.comm	_CNPU_REG,4,2                   ; @CNPU_REG
l_.str.2:                               ; @.str.2
	.asciz	"   pulldown\n"

	.comm	_CNPD_REG,4,2                   ; @CNPD_REG
l_.str.3:                               ; @.str.3
	.asciz	"   digital\n"

	.comm	_ANSEL_REG,4,2                  ; @ANSEL_REG
l_.str.4:                               ; @.str.4
	.asciz	"   analog\n"

l_.str.5:                               ; @.str.5
	.asciz	"   opendrain\n"

	.comm	_ODCU_REG,4,2                   ; @ODCU_REG
l_.str.6:                               ; @.str.6
	.asciz	"Property %u not supported\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_pic32_pinconf_set
.subsections_via_symbols
