	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gemini_pinconf_set
_gemini_pinconf_set:                    ## @gemini_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	callq	_pinctrl_dev_get_drvdata
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14,%r15,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %ebx
	movq	(%r14,%r15,8), %rdi
	callq	_pinconf_to_config_argument
	cmpl	$128, %ebx
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r12d
	cmpl	$16, %eax
	jge	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r13, %rbx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_gemini_get_pin_conf
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movl	(%rax), %eax
	bsfl	%eax, %edx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$1, %eax
	movl	$0, %ecx
	sbbl	%ecx, %ecx
	orb	%dl, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_dev_dbg
	movl	4(%rbx), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movl	%r12d, %ecx
	callq	_regmap_update_bits
	incq	%r15
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	movq	%rbx, %r13
	jne	LBB0_3
	jmp	LBB0_12
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_9:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	jmp	LBB0_10
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
LBB0_10:
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_12:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pin for skew delay %d\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"set pin %d to skew delay mask %08x, val %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid config param %04x\n"

	.no_dead_strip	_gemini_pinconf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gemini_pinconf_set
_gemini_pinconf_set:                    ; @gemini_pinconf_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	bl	_pinctrl_dev_get_drvdata
	cbz	w22, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	w25, w22
Lloh0:
	adrp	x22, l_.str.1@PAGE
Lloh1:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_pinconf_to_config_param
	mov	x24, x0
	ldr	x0, [x20]
	bl	_pinconf_to_config_argument
	cmp	w24, #128
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	cmp	w0, #16
	b.ge	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_gemini_get_pin_conf
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	ldr	w3, [x0]
	rbit	w8, w3
	clz	w8, w8
	cmp	w3, #0
	csinv	w8, w8, wzr, ne
	lsl	w23, w23, w8
	ldr	w0, [x21]
	mov	x1, x22
	mov	x2, x19
	mov	x4, x23
	bl	_dev_dbg
	ldr	w0, [x21, #4]
	ldp	w2, w1, [x24]
	mov	x3, x23
	bl	_regmap_update_bits
	add	x20, x20, #8
	subs	x25, x25, #1
	b.ne	LBB0_2
LBB0_6:
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	b	LBB0_10
LBB0_8:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
LBB0_10:
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pin for skew delay %d\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"set pin %d to skew delay mask %08x, val %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid config param %04x\n"

	.no_dead_strip	_gemini_pinconf_set
.subsections_via_symbols
