	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrfld_config_get
_mrfld_config_get:                      ## @mrfld_config_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r14d
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mrfld_read_bufcfg
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-36(%rbp), %edx
	movq	_BUFCFG_PUPD_VAL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_BUFCFG_PUPD_VAL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leal	-128(%r14), %ecx
	cmpl	$4, %ecx
	ja	LBB0_1
## %bb.4:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_14:
	movq	_BUFCFG_SLEWSEL@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	testl	%edx, (%rax)
	setne	%sil
	jmp	LBB0_15
LBB0_12:
	movq	_BUFCFG_OD_EN@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	testl	%edx, (%rax)
	jne	LBB0_15
	jmp	LBB0_13
LBB0_7:
	movq	_BUFCFG_Px_EN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_BUFCFG_PU_EN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	je	LBB0_10
	jmp	LBB0_13
LBB0_8:
	movq	_BUFCFG_Px_EN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_BUFCFG_PD_EN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_13
LBB0_10:
	addl	$-133, %eax
	xorl	%esi, %esi
	cmpl	$4, %eax
	jae	LBB0_15
## %bb.11:
	cltq
	leaq	L_switch.table.mrfld_config_get.1(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
	jmp	LBB0_15
LBB0_5:
	movq	_BUFCFG_Px_EN_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	xorl	%esi, %esi
LBB0_15:
	movl	%r14d, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_BUFCFG_PUPD_VAL_MASK,4,2       ## @BUFCFG_PUPD_VAL_MASK
	.comm	_BUFCFG_PUPD_VAL_SHIFT,4,2      ## @BUFCFG_PUPD_VAL_SHIFT
	.comm	_BUFCFG_Px_EN_MASK,4,2          ## @BUFCFG_Px_EN_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BUFCFG_PU_EN,4,2               ## @BUFCFG_PU_EN
	.comm	_BUFCFG_PD_EN,4,2               ## @BUFCFG_PD_EN
	.comm	_BUFCFG_OD_EN,4,2               ## @BUFCFG_OD_EN
	.comm	_BUFCFG_SLEWSEL,4,2             ## @BUFCFG_SLEWSEL
	.no_dead_strip	_mrfld_config_get
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.mrfld_config_get.1
L_switch.table.mrfld_config_get.1:
	.long	910                             ## 0x38e
	.long	50000                           ## 0xc350
	.long	2000                            ## 0x7d0
	.long	20000                           ## 0x4e20

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrfld_config_get
_mrfld_config_get:                      ; @mrfld_config_get
	.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, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_mrfld_read_bufcfg
	cbz	w0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
LBB0_4:
	sub	w10, w20, #128
	cmp	w10, #4
	b.hi	LBB0_1
; %bb.5:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _BUFCFG_PUPD_VAL_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BUFCFG_PUPD_VAL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _BUFCFG_PUPD_VAL_SHIFT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _BUFCFG_PUPD_VAL_SHIFT@GOTPAGEOFF]
	and	w9, w9, w8
Lloh7:
	ldr	w11, [x11]
	asr	w9, w9, w11
Lloh8:
	adrp	x11, lJTI0_0@PAGE
Lloh9:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_6
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_6:
Lloh10:
	adrp	x9, _BUFCFG_SLEWSEL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BUFCFG_SLEWSEL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	b	LBB0_16
LBB0_7:
Lloh13:
	adrp	x10, _BUFCFG_Px_EN_MASK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _BUFCFG_Px_EN_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	and	w8, w10, w8
Lloh16:
	adrp	x10, _BUFCFG_PU_EN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _BUFCFG_PU_EN@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh18:
	adrp	x9, _BUFCFG_Px_EN_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BUFCFG_Px_EN_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
	b	LBB0_15
LBB0_9:
Lloh21:
	adrp	x9, _BUFCFG_OD_EN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BUFCFG_OD_EN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
	b	LBB0_14
LBB0_10:
Lloh24:
	adrp	x10, _BUFCFG_Px_EN_MASK@GOTPAGE
Lloh25:
	ldr	x10, [x10, _BUFCFG_Px_EN_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	and	w8, w10, w8
Lloh27:
	adrp	x10, _BUFCFG_PD_EN@GOTPAGE
Lloh28:
	ldr	x10, [x10, _BUFCFG_PD_EN@GOTPAGEOFF]
LBB0_11:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_14
; %bb.12:
	sub	w8, w9, #133
	cmp	w8, #4
	b.hs	LBB0_15
; %bb.13:
Lloh29:
	adrp	x9, l_switch.table.mrfld_config_get.1@PAGE
Lloh30:
	add	x9, x9, l_switch.table.mrfld_config_get.1@PAGEOFF
	ldr	w1, [x9, w8, sxtw #2]
	b	LBB0_16
LBB0_14:
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	mov	w1, #0
LBB0_16:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_BUFCFG_PUPD_VAL_MASK,4,2       ; @BUFCFG_PUPD_VAL_MASK
	.comm	_BUFCFG_PUPD_VAL_SHIFT,4,2      ; @BUFCFG_PUPD_VAL_SHIFT
	.comm	_BUFCFG_Px_EN_MASK,4,2          ; @BUFCFG_Px_EN_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BUFCFG_PU_EN,4,2               ; @BUFCFG_PU_EN
	.comm	_BUFCFG_PD_EN,4,2               ; @BUFCFG_PD_EN
	.comm	_BUFCFG_OD_EN,4,2               ; @BUFCFG_OD_EN
	.comm	_BUFCFG_SLEWSEL,4,2             ; @BUFCFG_SLEWSEL
	.no_dead_strip	_mrfld_config_get
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.mrfld_config_get.1
l_switch.table.mrfld_config_get.1:
	.long	910                             ; 0x38e
	.long	50000                           ; 0xc350
	.long	2000                            ; 0x7d0
	.long	20000                           ; 0x4e20

.subsections_via_symbols
