	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pinconf_group_set
_tegra_pinconf_group_set:               ## @tegra_pinconf_group_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
	movl	%ecx, %r15d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rcx
	movl	%r14d, %edx
	shlq	$2, %rdx
	addq	(%rcx), %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rax, %rbx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14,%r12,8), %rdi
	callq	_TEGRA_PINCONF_UNPACK_PARAM
	movl	%eax, %r15d
	movq	(%r14,%r12,8), %rdi
	callq	_TEGRA_PINCONF_UNPACK_ARG
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	$1, %ecx
	leaq	-52(%rbp), %r8
	leaq	-44(%rbp), %r9
	leaq	-56(%rbp), %rax
	pushq	%rax
	leaq	-48(%rbp), %rax
	pushq	%rax
	callq	_tegra_pinconf_reg
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_pmx_readl
	movl	%eax, %r14d
	movq	_TEGRA_PINCONF_PARAM_LOCK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	je	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %r8d
	xorl	%eax, %eax
	testl	%r13d, %r13d
	setne	%al
	cmpl	$1, %r8d
	cmovnel	%r13d, %eax
	movl	$-1, %edx
	movl	%r8d, %ecx
	shll	%cl, %edx
	testl	%edx, %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	notl	%edx
	movzbl	-48(%rbp), %ecx
	shll	%cl, %edx
	notl	%edx
	shll	%cl, %eax
	andl	%edx, %r14d
	orl	%r14d, %eax
	movl	-52(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pmx_writel
	incq	%r12
	cmpq	%r12, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_13
LBB0_10:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r12,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEGRA_PINCONF_PARAM_LOCK,4,2   ## @TEGRA_PINCONF_PARAM_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LOCK bit cannot be cleared\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"config %lx: %x too big for %d bit register\n"

	.no_dead_strip	_tegra_pinconf_group_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pinconf_group_set
_tegra_pinconf_group_set:               ; @tegra_pinconf_group_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x1
	mov	x20, x0
	bl	_pinctrl_dev_get_drvdata
	cbz	w23, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x22, x8, w22, uxtw #2
	mov	w26, w23
Lloh0:
	adrp	x27, _TEGRA_PINCONF_PARAM_LOCK@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TEGRA_PINCONF_PARAM_LOCK@GOTPAGEOFF]
	mov	w28, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_TEGRA_PINCONF_UNPACK_PARAM
	mov	x25, x0
	ldr	x0, [x19]
	bl	_TEGRA_PINCONF_UNPACK_ARG
	mov	x23, x0
	add	x4, sp, #44
	add	x5, sp, #32
	add	x6, sp, #40
	add	x7, sp, #36
	mov	x0, x21
	mov	x1, x22
	mov	x2, x25
	mov	w3, #1
	bl	_tegra_pinconf_reg
	tbnz	w0, #31, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [sp, #44]
	ldr	w2, [sp, #32]
	mov	x0, x21
	bl	_pmx_readl
	mov	x24, x0
	ldr	w8, [x27]
	cmp	w25, w8
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #40]
	bl	_BIT
	tst	w0, w24
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w23, LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #36]
	cmp	w23, #0
	cset	w8, ne
	cmp	x9, #1
	csel	w8, w8, w23, eq
	lsl	w10, w28, w9
	tst	w8, w10
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mvn	w9, w10
	ldp	w10, w2, [sp, #40]
	lsl	w9, w9, w10
	bic	w9, w24, w9
	lsl	w8, w8, w10
	orr	w1, w9, w8
	ldr	w3, [sp, #32]
	mov	x0, x21
	bl	_pmx_writel
	add	x19, x19, #8
	subs	x26, x26, #1
	b.ne	LBB0_2
LBB0_8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	ldr	w0, [x20]
	ldr	x10, [x19]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TEGRA_PINCONF_PARAM_LOCK,4,2   ; @TEGRA_PINCONF_PARAM_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LOCK bit cannot be cleared\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"config %lx: %x too big for %d bit register\n"

	.no_dead_strip	_tegra_pinconf_group_set
.subsections_via_symbols
