	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8a77470_pin_to_pocctrl
_r8a77470_pin_to_pocctrl:               ## @r8a77470_pin_to_pocctrl
	.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	%esi, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	$-435814224, (%rdx)             ## imm = 0xE60600B0
	xorl	%edi, %edi
	movl	$5, %esi
	callq	_RCAR_GP_PIN
	cmpl	%r14d, %eax
	ja	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	movl	$10, %esi
	callq	_RCAR_GP_PIN
	cmpl	%r14d, %eax
	cmovael	%r15d, %ebx
LBB0_2:
	xorl	%edi, %edi
	movl	$13, %esi
	callq	_RCAR_GP_PIN
	cmpl	%r14d, %eax
	ja	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	movl	$22, %esi
	callq	_RCAR_GP_PIN
	cmpl	%r14d, %eax
	movl	$2, %eax
	cmovael	%eax, %ebx
LBB0_4:
	movl	$4, %edi
	movl	$14, %esi
	callq	_RCAR_GP_PIN
	cmpl	%r14d, %eax
	ja	LBB0_6
## %bb.5:
	movl	$4, %edi
	movl	$19, %esi
	callq	_RCAR_GP_PIN
	cmpl	%r14d, %eax
	movl	$1, %eax
	cmovael	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_r8a77470_pin_to_pocctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8a77470_pin_to_pocctrl
_r8a77470_pin_to_pocctrl:               ; @r8a77470_pin_to_pocctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	mov	w8, #176
	movk	w8, #58886, lsl #16
	str	w8, [x2]
	mov	w0, #0
	mov	w1, #5
	bl	_RCAR_GP_PIN
	cmp	w0, w20
	b.hi	LBB0_2
; %bb.1:
	mov	w0, #0
	mov	w1, #10
	bl	_RCAR_GP_PIN
	cmp	w0, w20
	csel	w19, w19, wzr, lo
LBB0_2:
	mov	w0, #0
	mov	w1, #13
	bl	_RCAR_GP_PIN
	cmp	w0, w20
	b.hi	LBB0_4
; %bb.3:
	mov	w0, #0
	mov	w1, #22
	bl	_RCAR_GP_PIN
	mov	w8, #2
	cmp	w0, w20
	csel	w19, w19, w8, lo
LBB0_4:
	mov	w0, #4
	mov	w1, #14
	bl	_RCAR_GP_PIN
	cmp	w0, w20
	b.hi	LBB0_6
; %bb.5:
	mov	w0, #4
	mov	w1, #19
	bl	_RCAR_GP_PIN
	cmp	w0, w20
	csinc	w19, w19, wzr, lo
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_r8a77470_pin_to_pocctrl
.subsections_via_symbols
