	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_pfc_gpio_disable_free
_sh_pfc_gpio_disable_free:              ## @sh_pfc_gpio_disable_free
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_sh_pfc_get_pin_index
	movq	(%rbx), %r14
	movslq	%eax, %rbx
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	shlq	$4, %rbx
	movl	$0, (%r14,%rbx)
	cmpq	$0, 8(%r14,%rbx)
	je	LBB0_2
## %bb.1:
	movl	4(%r14,%rbx), %esi
	movq	_PINMUX_TYPE_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_sh_pfc_config_mux
LBB0_2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PINMUX_TYPE_FUNCTION,4,2       ## @PINMUX_TYPE_FUNCTION
	.no_dead_strip	_sh_pfc_gpio_disable_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_pfc_gpio_disable_free
_sh_pfc_gpio_disable_free:              ; @sh_pfc_gpio_disable_free
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_sh_pfc_get_pin_index
	mov	x20, x0
	ldr	x21, [x21]
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x8, x21, w20, sxtw #4
	str	wzr, [x8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
	sxtw	x8, w20
	add	x8, x21, x8, lsl #4
	ldr	w1, [x8, #4]
Lloh0:
	adrp	x8, _PINMUX_TYPE_FUNCTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINMUX_TYPE_FUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sh_pfc_config_mux
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PINMUX_TYPE_FUNCTION,4,2       ; @PINMUX_TYPE_FUNCTION
	.no_dead_strip	_sh_pfc_gpio_disable_free
.subsections_via_symbols
