	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_pctrl_parse_drive_prop
_sunxi_pctrl_parse_drive_prop:          ## @sunxi_pctrl_parse_drive_prop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-12(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_2
## %bb.7:
	movl	-12(%rbp), %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	addl	$10, %eax
	jmp	LBB0_8
LBB0_1:
	movl	-12(%rbp), %edi
	cmpl	$9, %edi
	jg	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	cmpl	$41, %edi
	jb	LBB0_5
## %bb.4:
	movl	$40, -12(%rbp)
	movl	$40, %edi
LBB0_5:
	movl	$10, %esi
	callq	_rounddown
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drive-strength"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"allwinner,drive"

	.no_dead_strip	_sunxi_pctrl_parse_drive_prop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_pctrl_parse_drive_prop
_sunxi_pctrl_parse_drive_prop:          ; @sunxi_pctrl_parse_drive_prop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	mov	w9, #10
	mul	w8, w8, w9
	add	w0, w8, #10
	b	LBB0_8
LBB0_3:
	ldr	w0, [sp, #12]
	cmp	w0, #9
	b.gt	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	cmp	w0, #41
	b.lo	LBB0_7
; %bb.6:
	mov	w0, #40
	str	w0, [sp, #12]
LBB0_7:
	mov	w1, #10
	bl	_rounddown
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drive-strength"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"allwinner,drive"

	.no_dead_strip	_sunxi_pctrl_parse_drive_prop
.subsections_via_symbols
