	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gemini_pinconf_get
_gemini_pinconf_get:                    ## @gemini_pinconf_get
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_gemini_get_pin_conf
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movl	(%r12), %edi
	movl	4(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	(%rbx), %eax
	movl	-36(%rbp), %esi
	andl	%eax, %esi
	bsfl	%eax, %edx
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	movl	$0, %ecx
	sbbl	%ecx, %ecx
	orb	%dl, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movl	%esi, -36(%rbp)
	movl	$128, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	jmp	LBB0_4
LBB0_3:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_gemini_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gemini_pinconf_get
_gemini_pinconf_get:                    ; @gemini_pinconf_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x20, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	cmp	w0, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_gemini_get_pin_conf
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	w0, [x20]
	ldr	w1, [x21, #4]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	and	w9, w9, w8
	rbit	w10, w8
	clz	w10, w10
	cmp	w8, #0
	csinv	w8, w10, wzr, ne
	asr	w1, w9, w8
	str	w1, [sp, #12]
	mov	w0, #128
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_gemini_pinconf_get
.subsections_via_symbols
