	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_pfc_pinconf_get_drive_strength
_sh_pfc_pinconf_get_drive_strength:     ## @sh_pfc_pinconf_get_drive_strength
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	callq	_sh_pfc_pinconf_find_drive_strength_reg
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sh_pfc_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movb	-24(%rbp), %cl
	shrl	%cl, %r14d
	movl	-20(%rbp), %edi
	decl	%edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, %ecx
	andl	%r14d, %ecx
	incl	%ecx
	xorl	%eax, %eax
	cmpl	$2, -20(%rbp)
	sete	%al
	leal	(%rax,%rax,2), %eax
	addl	$3, %eax
	imull	%ecx, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sh_pfc_pinconf_get_drive_strength
.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_drive_strength
_sh_pfc_pinconf_get_drive_strength:     ; @sh_pfc_pinconf_get_drive_strength
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_sh_pfc_pinconf_find_drive_strength_reg
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_sh_pfc_read
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w8, [sp, #12]
	lsr	w19, w20, w8
	ldr	w8, [sp, #8]
	sub	w0, w8, #1
	mov	w1, #0
	bl	_GENMASK
	and	w8, w0, w19
	ldr	w9, [sp, #8]
	mov	w10, #3
	mov	w11, #6
	cmp	w9, #2
	csel	w9, w11, w10, eq
	madd	w0, w9, w8, w9
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sh_pfc_pinconf_get_drive_strength
.subsections_via_symbols
