	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_pfc_gpio_request_enable
_sh_pfc_gpio_request_enable:            ## @sh_pfc_gpio_request_enable
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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), %r12
	movslq	%eax, %rbx
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 16(%r15)
	jne	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	_PINMUX_TYPE_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_sh_pfc_config_mux
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	movl	$1, (%r12,%rbx,4)
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_PINMUX_TYPE_GPIO,4,2           ## @PINMUX_TYPE_GPIO
	.no_dead_strip	_sh_pfc_gpio_request_enable
.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_request_enable
_sh_pfc_gpio_request_enable:            ; @sh_pfc_gpio_request_enable
	.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
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x21, [x21]
	sxtw	x22, w0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x8, x22, lsl #2]
Lloh0:
	adrp	x8, _PINMUX_TYPE_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINMUX_TYPE_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sh_pfc_config_mux
	tbnz	w0, #31, LBB0_4
LBB0_2:
	mov	w20, #0
	mov	w8, #1
	str	w8, [x21, x22, lsl #2]
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
	ret
LBB0_4:
	mov	x20, x0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PINMUX_TYPE_GPIO,4,2           ; @PINMUX_TYPE_GPIO
	.no_dead_strip	_sh_pfc_gpio_request_enable
.subsections_via_symbols
