	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_pinconf_set_drive_strength
_meson_pinconf_set_drive_strength:      ## @meson_pinconf_set_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %r15d
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_meson_get_bank
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	-48(%rbp), %rdi
	movq	_REG_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movl	%r15d, %esi
	callq	_meson_calc_reg_and_bit
	movl	-36(%rbp), %ecx
	addl	%ecx, %ecx
	movl	%ecx, -36(%rbp)
	cmpl	$501, %r14d                     ## imm = 0x1F5
	jge	LBB0_5
## %bb.4:
	movq	_MESON_PINCONF_DRV_500UA@GOTPCREL(%rip), %r12
	jmp	LBB0_11
LBB0_1:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_5:
	cmpl	$2501, %r14d                    ## imm = 0x9C5
	jae	LBB0_7
## %bb.6:
	movq	_MESON_PINCONF_DRV_2500UA@GOTPCREL(%rip), %r12
	jmp	LBB0_11
LBB0_7:
	cmpl	$3001, %r14d                    ## imm = 0xBB9
	jae	LBB0_9
## %bb.8:
	movq	_MESON_PINCONF_DRV_3000UA@GOTPCREL(%rip), %r12
	jmp	LBB0_11
LBB0_9:
	movq	_MESON_PINCONF_DRV_4000UA@GOTPCREL(%rip), %r12
	cmpl	$4001, %r14d                    ## imm = 0xFA1
	jb	LBB0_11
## %bb.10:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dev_warn_once
	movl	-36(%rbp), %ecx
LBB0_11:
	movl	(%r12), %eax
	movl	(%rbx), %edi
	movl	$3, %edx
	shll	%cl, %edx
	movl	-40(%rbp), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drive-strength not supported\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_REG_DS,4,2                     ## @REG_DS
	.comm	_MESON_PINCONF_DRV_500UA,4,2    ## @MESON_PINCONF_DRV_500UA
	.comm	_MESON_PINCONF_DRV_2500UA,4,2   ## @MESON_PINCONF_DRV_2500UA
	.comm	_MESON_PINCONF_DRV_3000UA,4,2   ## @MESON_PINCONF_DRV_3000UA
	.comm	_MESON_PINCONF_DRV_4000UA,4,2   ## @MESON_PINCONF_DRV_4000UA
L_.str.1:                               ## @.str.1
	.asciz	"pin %u: invalid drive-strength : %d , default to 4mA\n"

	.no_dead_strip	_meson_pinconf_set_drive_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_pinconf_set_drive_strength
_meson_pinconf_set_drive_strength:      ; @meson_pinconf_set_drive_strength
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	add	x2, sp, #8
	mov	x0, x19
	bl	_meson_get_bank
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x8, _REG_DS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_DS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	x4, sp
	mov	x1, x21
	bl	_meson_calc_reg_and_bit
	ldr	w8, [sp]
	lsl	w8, w8, #1
	str	w8, [sp]
	cmp	w20, #501
	b.ge	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _MESON_PINCONF_DRV_500UA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MESON_PINCONF_DRV_500UA@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_5:
	cmp	w20, #2501
	b.hs	LBB0_7
; %bb.6:
Lloh10:
	adrp	x9, _MESON_PINCONF_DRV_2500UA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MESON_PINCONF_DRV_2500UA@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	cmp	w20, #3001
	b.hs	LBB0_9
; %bb.8:
Lloh12:
	adrp	x9, _MESON_PINCONF_DRV_3000UA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MESON_PINCONF_DRV_3000UA@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	cmp	w20, #4001
	b.hs	LBB0_11
; %bb.10:
Lloh14:
	adrp	x9, _MESON_PINCONF_DRV_4000UA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MESON_PINCONF_DRV_4000UA@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19, #4]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_dev_warn_once
Lloh18:
	adrp	x9, _MESON_PINCONF_DRV_4000UA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MESON_PINCONF_DRV_4000UA@GOTPAGEOFF]
	ldr	w8, [sp]
LBB0_12:
	ldr	w9, [x9]
	ldr	w0, [x19]
	ldr	w1, [sp, #4]
	mov	w10, #3
	lsl	w2, w10, w8
	lsl	w3, w9, w8
	bl	_regmap_update_bits
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drive-strength not supported\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_REG_DS,4,2                     ; @REG_DS
	.comm	_MESON_PINCONF_DRV_500UA,4,2    ; @MESON_PINCONF_DRV_500UA
	.comm	_MESON_PINCONF_DRV_2500UA,4,2   ; @MESON_PINCONF_DRV_2500UA
	.comm	_MESON_PINCONF_DRV_3000UA,4,2   ; @MESON_PINCONF_DRV_3000UA
	.comm	_MESON_PINCONF_DRV_4000UA,4,2   ; @MESON_PINCONF_DRV_4000UA
l_.str.1:                               ; @.str.1
	.asciz	"pin %u: invalid drive-strength : %d , default to 4mA\n"

	.no_dead_strip	_meson_pinconf_set_drive_strength
.subsections_via_symbols
