	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_pfc_pinconf_get
_sh_pfc_pinconf_get:                    ## @sh_pfc_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	callq	_pinctrl_dev_get_drvdata
	movq	(%rax), %r13
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_sh_pfc_pinconf_validate
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leal	-130(%r15), %eax
	cmpl	$3, %eax
	jae	LBB0_4
## %bb.7:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.9:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	*(%rax)
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	cmpl	%r15d, %r12d
	je	LBB0_15
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	cmpl	$128, %r15d
	je	LBB0_11
## %bb.5:
	cmpl	$129, %r15d
	jne	LBB0_1
## %bb.6:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_sh_pfc_pinconf_get_drive_strength
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_15
	jmp	LBB0_16
LBB0_11:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.13:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	*%rcx
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_WARN
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_sh_pfc_read
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	movl	$1800, %eax                     ## imm = 0x708
	movl	$3300, %ebx                     ## imm = 0xCE4
	cmovel	%eax, %ebx
LBB0_15:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pin %#x"

	.no_dead_strip	_sh_pfc_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_pfc_pinconf_get
_sh_pfc_pinconf_get:                    ; @sh_pfc_pinconf_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x22, x1
	bl	_pinctrl_dev_get_drvdata
	ldr	x21, [x0]
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_sh_pfc_pinconf_validate
	cbz	w0, LBB0_14
; %bb.1:
	sub	w8, w20, #130
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.4:
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cmp	w22, w20
	b.ne	LBB0_17
; %bb.5:
	mov	w23, #0
	b	LBB0_13
LBB0_6:
	cmp	w20, #128
	b.eq	LBB0_9
; %bb.7:
	cmp	w20, #129
	b.ne	LBB0_14
; %bb.8:
	mov	x0, x21
	mov	x1, x22
	bl	_sh_pfc_pinconf_get_drive_strength
	mov	x23, x0
	tbz	w0, #31, LBB0_13
	b	LBB0_16
LBB0_9:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.10:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_14
; %bb.11:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	blr	x8
	mov	x23, x0
	lsr	w0, w0, #31
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_WARN
	cbnz	w0, LBB0_16
; %bb.12:
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_sh_pfc_read
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x23
	bl	_BIT
	tst	w0, w22
	mov	w8, #3300
	mov	w9, #1800
	csel	w23, w9, w8, eq
LBB0_13:
	mov	x0, x20
	mov	x1, x23
	bl	_pinconf_to_config_packed
	mov	w23, #0
	str	x0, [x19]
	b	LBB0_16
LBB0_14:
Lloh2:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_16:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
LBB0_17:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pin %#x"

	.no_dead_strip	_sh_pfc_pinconf_get
.subsections_via_symbols
