	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_pinconf_get
_amd_pinconf_get:                       ## @amd_pinconf_get
	.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
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	leaq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_raw_spin_lock_irqsave
	shll	$2, %ebx
	addq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_raw_spin_unlock_irqrestore
	movl	%r15d, %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_DB_TMR_OUT_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_4:
	movq	_DRV_STRENGTH_SEL_OFF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %r12d
	movq	_DRV_STRENGTH_SEL_MASK@GOTPCREL(%rip), %rax
LBB0_5:
	andl	(%rax), %r12d
	jmp	LBB0_9
LBB0_6:
	movq	_PULL_UP_SEL_OFF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %r12d
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_BIT
	orl	%ebx, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_PULL_DOWN_ENABLE_OFF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %r12d
	xorl	%edi, %edi
	callq	_BIT
LBB0_8:
	andl	%eax, %r12d
LBB0_9:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_pinconf_to_config_packed
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_DB_TMR_OUT_MASK,4,2            ## @DB_TMR_OUT_MASK
	.comm	_PULL_DOWN_ENABLE_OFF,4,2       ## @PULL_DOWN_ENABLE_OFF
	.comm	_PULL_UP_SEL_OFF,4,2            ## @PULL_UP_SEL_OFF
	.comm	_DRV_STRENGTH_SEL_OFF,4,2       ## @DRV_STRENGTH_SEL_OFF
	.comm	_DRV_STRENGTH_SEL_MASK,4,2      ## @DRV_STRENGTH_SEL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid config param %04x\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_amd_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_pinconf_get
_amd_pinconf_get:                       ; @amd_pinconf_get
	.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	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	add	x23, x22, #8
	mov	x0, x23
	bl	_raw_spin_lock_irqsave
	ldr	x8, [x22, #16]
	lsl	w9, w21, #2
	add	x0, x8, x9
	bl	_readl
	mov	x21, x0
	mov	x0, x23
	bl	_raw_spin_unlock_irqrestore
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _DB_TMR_OUT_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DB_TMR_OUT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w1, w8, w21
	b	LBB0_7
LBB0_3:
	ldr	x0, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _DRV_STRENGTH_SEL_OFF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRV_STRENGTH_SEL_OFF@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsr	w8, w21, w8
Lloh13:
	adrp	x9, _DRV_STRENGTH_SEL_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DRV_STRENGTH_SEL_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w1, w8, w9
	b	LBB0_7
LBB0_5:
Lloh16:
	adrp	x8, _PULL_UP_SEL_OFF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PULL_UP_SEL_OFF@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	lsr	w22, w21, w8
	mov	w0, #0
	bl	_BIT
	mov	x21, x0
	mov	w0, #1
	bl	_BIT
	orr	w8, w0, w21
	and	w1, w8, w22
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x8, _PULL_DOWN_ENABLE_OFF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PULL_DOWN_ENABLE_OFF@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	lsr	w21, w21, w8
	mov	w0, #0
	bl	_BIT
	and	w1, w21, w0
LBB0_7:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_DB_TMR_OUT_MASK,4,2            ; @DB_TMR_OUT_MASK
	.comm	_PULL_DOWN_ENABLE_OFF,4,2       ; @PULL_DOWN_ENABLE_OFF
	.comm	_PULL_UP_SEL_OFF,4,2            ; @PULL_UP_SEL_OFF
	.comm	_DRV_STRENGTH_SEL_OFF,4,2       ; @DRV_STRENGTH_SEL_OFF
	.comm	_DRV_STRENGTH_SEL_MASK,4,2      ; @DRV_STRENGTH_SEL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid config param %04x\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_amd_pinconf_get
.subsections_via_symbols
