	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_gpio_parse_drive_strength
_aw_gpio_parse_drive_strength:          ## @aw_gpio_parse_drive_strength
	.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
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_OF_getencprop
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_OF_getencprop
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movslq	-28(%rbp), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$34, %rcx
	shrq	$63, %rax
	addl	%ecx, %eax
	decl	%eax
	movl	%eax, (%r15)
	jmp	LBB0_5
LBB0_3:
	movl	$1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drive"

L_.str.1:                               ## @.str.1
	.asciz	"allwinner,drive"

L_.str.2:                               ## @.str.2
	.asciz	"drive-strength"

	.no_dead_strip	_aw_gpio_parse_drive_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_gpio_parse_drive_strength
_aw_gpio_parse_drive_strength:          ; @aw_gpio_parse_drive_strength
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	w3, #4
	bl	_OF_getencprop
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	w3, #4
	bl	_OF_getencprop
	cmn	w0, #1
	b.eq	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #4
	bl	_OF_getencprop
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
	ldrsw	x8, [sp, #12]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_3
LBB0_6:
	mov	w0, #1
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drive"

l_.str.1:                               ; @.str.1
	.asciz	"allwinner,drive"

l_.str.2:                               ; @.str.2
	.asciz	"drive-strength"

	.no_dead_strip	_aw_gpio_parse_drive_strength
.subsections_via_symbols
