	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altas7_pinctrl_set_drive_strength_sel
_altas7_pinctrl_set_drive_strength_sel: ## @altas7_pinctrl_set_drive_strength_sel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_pinctrl_dev_get_drvdata
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_convert_current_to_drive_strength
	movq	%rax, %r12
	movq	_DS_NULL@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_pr_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	___altas7_pinctrl_set_drive_strength_sel
	movl	%eax, %ebx
	testl	%eax, %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_pr_debug
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS_NULL,8,3                    ## @DS_NULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pad#%d type[%d] doesn't support ds current[%d]!\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"PIN_CFG ### SET PIN#%d DS:%d MA:%d == %s ####\n"

L_.str.2:                               ## @.str.2
	.asciz	"FAILED"

L_.str.3:                               ## @.str.3
	.asciz	"OK"

	.no_dead_strip	_altas7_pinctrl_set_drive_strength_sel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function altas7_pinctrl_set_drive_strength_sel
_altas7_pinctrl_set_drive_strength_sel: ; @altas7_pinctrl_set_drive_strength_sel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_pinctrl_dev_get_drvdata
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x23, [x8, x20, lsl #3]
	mov	x0, x23
	mov	x1, x19
	bl	_convert_current_to_drive_strength
Lloh0:
	adrp	x8, _DS_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DS_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	mov	x3, x19
	bl	_pr_err
Lloh5:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_3
LBB0_2:
	mov	x21, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	___altas7_pinctrl_set_drive_strength_sel
	mov	x22, x0
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh10:
	adrp	x9, l_.str.3@PAGE
Lloh11:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w0, #0
	csel	x4, x9, x8, eq
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_pr_debug
LBB0_3:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DS_NULL,8,3                    ; @DS_NULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pad#%d type[%d] doesn't support ds current[%d]!\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"PIN_CFG ### SET PIN#%d DS:%d MA:%d == %s ####\n"

l_.str.2:                               ; @.str.2
	.asciz	"FAILED"

l_.str.3:                               ; @.str.3
	.asciz	"OK"

	.no_dead_strip	_altas7_pinctrl_set_drive_strength_sel
.subsections_via_symbols
