	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8a7795es1_pinmux_get_bias
_r8a7795es1_pinmux_get_bias:            ## @r8a7795es1_pinmux_get_bias
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-36(%rbp), %rdx
	callq	_sh_pfc_pin_to_bias_reg
	movq	_PIN_CONFIG_BIAS_DISABLE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_sh_pfc_read
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_sh_pfc_read
	movl	%eax, %ebx
	movl	-36(%rbp), %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_3
## %bb.4:
	movq	_PIN_CONFIG_BIAS_PULL_DOWN@GOTPCREL(%rip), %r12
	jmp	LBB0_5
LBB0_3:
	movq	_PIN_CONFIG_BIAS_PULL_UP@GOTPCREL(%rip), %r12
LBB0_5:
	movl	(%r12), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_CONFIG_BIAS_DISABLE,4,2    ## @PIN_CONFIG_BIAS_DISABLE
	.comm	_PIN_CONFIG_BIAS_PULL_UP,4,2    ## @PIN_CONFIG_BIAS_PULL_UP
	.comm	_PIN_CONFIG_BIAS_PULL_DOWN,4,2  ## @PIN_CONFIG_BIAS_PULL_DOWN
	.no_dead_strip	_r8a7795es1_pinmux_get_bias
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8a7795es1_pinmux_get_bias
_r8a7795es1_pinmux_get_bias:            ; @r8a7795es1_pinmux_get_bias
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	add	x2, sp, #12
	bl	_sh_pfc_pin_to_bias_reg
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w1, [x0, #4]
	mov	x0, x19
	bl	_sh_pfc_read
	mov	x21, x0
	ldr	w0, [sp, #12]
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sh_pfc_read
	mov	x19, x0
	ldr	w0, [sp, #12]
	bl	_BIT
Lloh0:
	adrp	x8, _PIN_CONFIG_BIAS_PULL_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIN_CONFIG_BIAS_PULL_UP@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PIN_CONFIG_BIAS_PULL_DOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PIN_CONFIG_BIAS_PULL_DOWN@GOTPAGEOFF]
	tst	w0, w19
	csel	x8, x9, x8, eq
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _PIN_CONFIG_BIAS_DISABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PIN_CONFIG_BIAS_DISABLE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_CONFIG_BIAS_DISABLE,4,2    ; @PIN_CONFIG_BIAS_DISABLE
	.comm	_PIN_CONFIG_BIAS_PULL_UP,4,2    ; @PIN_CONFIG_BIAS_PULL_UP
	.comm	_PIN_CONFIG_BIAS_PULL_DOWN,4,2  ; @PIN_CONFIG_BIAS_PULL_DOWN
	.no_dead_strip	_r8a7795es1_pinmux_get_bias
.subsections_via_symbols
