	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ingenic_set_bias
_ingenic_set_bias:                      ## @ingenic_set_bias
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_ID_JZ4760@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	_JZ4740_GPIO_PULL_DIS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_JZ4760_GPIO_PEN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%edx, %edx
	sete	%cl
	movl	%eax, %edx
	popq	%rbp
	jmp	_ingenic_config_pin             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ID_JZ4760,8,3                  ## @ID_JZ4760
	.comm	_JZ4760_GPIO_PEN,4,2            ## @JZ4760_GPIO_PEN
	.comm	_JZ4740_GPIO_PULL_DIS,4,2       ## @JZ4740_GPIO_PULL_DIS
	.no_dead_strip	_ingenic_set_bias
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ingenic_set_bias
_ingenic_set_bias:                      ; @ingenic_set_bias
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ID_JZ4760@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ID_JZ4760@GOTPAGEOFF]
Lloh2:
	adrp	x10, _JZ4740_GPIO_PULL_DIS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _JZ4740_GPIO_PULL_DIS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _JZ4760_GPIO_PEN@GOTPAGE
Lloh6:
	ldr	x11, [x11, _JZ4760_GPIO_PEN@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, lt
	ldr	w8, [x8]
	cmp	w2, #0
	cset	w3, eq
	mov	x2, x8
	b	_ingenic_config_pin
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ID_JZ4760,8,3                  ; @ID_JZ4760
	.comm	_JZ4760_GPIO_PEN,4,2            ; @JZ4760_GPIO_PEN
	.comm	_JZ4740_GPIO_PULL_DIS,4,2       ; @JZ4740_GPIO_PULL_DIS
	.no_dead_strip	_ingenic_set_bias
.subsections_via_symbols
