	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcs_pinconf_set
_pcs_pinconf_set:                       ## @pcs_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, %r15d
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_pcs_get_function
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.3:
	movl	%r15d, %r13d
	movq	-56(%rbp), %rax
	cmpl	$0, (%rax)
	sete	%al
	xorl	%r14d, %r14d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testb	$1, %al
	jne	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r14,8), %rdi
	callq	_pinconf_to_config_param
	movq	-56(%rbp), %rcx
	movq	8(%rcx), %rdx
	cmpl	(%rdx,%r15), %eax
	je	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=2
	incq	%r12
	movl	(%rcx), %eax
	addq	$16, %r15
	cmpq	%rax, %r12
	jb	LBB0_7
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %eax
	ja	LBB0_4
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	xorl	%edx, %edx
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rsi
	divl	(%rsi)
	movl	%eax, %r13d
	imull	-48(%rbp), %r13d                ## 4-byte Folded Reload
	movq	16(%rcx), %rdi
	addq	%r13, %rdi
	callq	*8(%rcx)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx,%r14,8), %rdi
	callq	_pinconf_to_config_argument
	movq	-56(%rbp), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx,%r15), %edx
	addl	$-128, %edx
	cmpl	$7, %edx
	ja	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rcx,%r15), %edx
	bsfl	%edx, %esi
	cmpl	$1, %edx
	movl	$0, %ecx
	sbbl	%ecx, %ecx
	orb	%sil, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%edi, %eax
	andl	%edx, %eax
	xorl	%eax, %edi
	jmp	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_pcs_pinconf_clear_bias
	movq	-56(%rbp), %rax
	movq	8(%rax), %rcx
	movl	4(%rcx,%r15), %eax
	notl	%eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	andl	%eax, %edi
	orl	8(%rcx,%r15), %edi
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rcx,%r15), %edx
	notl	%edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	andl	%edx, %edi
	testl	%eax, %eax
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	orl	8(%rcx,%r15), %edi
	jmp	LBB0_18
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_pcs_pinconf_clear_bias
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rcx,%r15), %eax
	notl	%eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	andl	%eax, %edi
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	orl	12(%rcx,%r15), %edi
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	16(%rax), %r13
	movq	%r13, %rsi
	callq	*24(%rax)
	movq	-56(%rbp), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	cmpl	%r12d, %eax
	jbe	LBB0_21
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	xorl	%eax, %eax
	cmpq	%r13, %r14
	jne	LBB0_5
	jmp	LBB0_22
LBB0_21:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_2:
	xorl	%eax, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_pcs_pinconf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcs_pinconf_set
_pcs_pinconf_set:                       ; @pcs_pinconf_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_pcs_get_function
	cbnz	w0, LBB0_23
; %bb.1:
	cbz	w23, LBB0_21
; %bb.2:
	mov	x24, #0
	mov	w25, w23
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w8, eq
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	tbnz	w8, #0, LBB0_22
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	mov	x28, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, x24, lsl #3]
	bl	_pinconf_to_config_param
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #8]
	ldr	w9, [x9, x27]
	cmp	w0, w9
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x28, x28, #1
	ldr	w8, [x8]
	add	x27, x27, #16
	cmp	x28, x8
	b.lo	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w28
	b.hi	LBB0_20
	b	LBB0_22
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _BITS_PER_BYTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w8, w8, w9
	mul	w26, w8, w20
	ldp	x8, x9, [x22, #8]
	add	x0, x9, x26
	blr	x8
	mov	x23, x0
	ldr	x0, [x19, x24, lsl #3]
	bl	_pinconf_to_config_argument
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	ldr	w9, [x8, x27]
	sub	w9, w9, #128
	cmp	w9, #7
	b.hi	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh3:
	adrp	x12, lJTI0_0@PAGE
Lloh4:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x12, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x27
	ldr	w8, [x8, #4]
	rbit	w9, w8
	clz	w9, w9
	cmp	w8, #0
	csinv	w9, w9, wzr, ne
	bic	w10, w23, w8
	lsl	w9, w0, w9
	and	w8, w9, w8
	orr	w23, w8, w10
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_pcs_pinconf_clear_bias
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	add	x9, x8, x27
	ldr	w9, [x9, #4]
	bic	w9, w23, w9
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x27
	ldr	w9, [x9, #4]
	bic	w9, w23, w9
	cbz	w0, LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x27
	ldr	w8, [x8, #8]
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_pcs_pinconf_clear_bias
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x27
	ldr	w9, [x9, #4]
	bic	w9, w23, w9
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x27
	ldr	w8, [x8, #12]
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w23, w8, w9
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x22, #16]
	add	x1, x9, x26
	mov	x0, x23
	blr	x8
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cmp	w8, w28
	b.ls	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	add	x24, x24, #1
	cmp	x24, x25
	b.ne	LBB0_3
LBB0_21:
	mov	w0, #0
	b	LBB0_23
LBB0_22:
Lloh5:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_15-LBB0_10)>>2
                                        ; -- End function
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_pcs_pinconf_set
.subsections_via_symbols
