	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrfld_config_set_pin
_mrfld_config_set_pin:                  ## @mrfld_config_set_pin
	.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, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_pinconf_to_config_argument
	xorl	%r14d, %r14d
	addl	$-128, %r15d
	movl	$0, %ebx
	movl	$0, %r13d
	cmpl	$4, %r15d
	ja	LBB0_14
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r15,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_12:
	movq	_BUFCFG_SLEWSEL@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_11:
	movq	_BUFCFG_OD_EN@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %r13d
	testl	%eax, %eax
	cmovnel	%r13d, %eax
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_3:
	movq	_BUFCFG_Px_EN_MASK@GOTPCREL(%rip), %rcx
	movq	_BUFCFG_PUPD_VAL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	orl	(%rcx), %r13d
	movq	_BUFCFG_PU_EN@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_9:
	movq	_BUFCFG_Px_EN_MASK@GOTPCREL(%rip), %rcx
	movq	_BUFCFG_PUPD_VAL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	orl	(%rcx), %r13d
	movq	_BUFCFG_PD_EN@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %edx
	cmpl	$2000, %eax                     ## imm = 0x7D0
	je	LBB0_10
## %bb.5:
	cmpl	$20000, %eax                    ## imm = 0x4E20
	je	LBB0_17
## %bb.6:
	cmpl	$50000, %eax                    ## imm = 0xC350
	jne	LBB0_16
## %bb.7:
	movq	_BUFCFG_PUPD_VAL_50K@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_BUFCFG_Px_EN_MASK@GOTPCREL(%rip), %rax
	movq	_BUFCFG_PUPD_VAL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_10:
	movq	_BUFCFG_PUPD_VAL_2K@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_17:
	movq	_BUFCFG_PUPD_VAL_20K@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
	movq	_BUFCFG_PUPD_VAL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%edx, %ebx
LBB0_14:
	movq	%r12, %rdi
	callq	_raw_spin_lock_irqsave
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_mrfld_update_bufcfg
	movq	%r12, %rdi
	callq	_raw_spin_unlock_irqrestore
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_BUFCFG_Px_EN_MASK,4,2          ## @BUFCFG_Px_EN_MASK
	.comm	_BUFCFG_PUPD_VAL_MASK,4,2       ## @BUFCFG_PUPD_VAL_MASK
	.comm	_BUFCFG_PU_EN,4,2               ## @BUFCFG_PU_EN
	.comm	_BUFCFG_PUPD_VAL_50K,4,2        ## @BUFCFG_PUPD_VAL_50K
	.comm	_BUFCFG_PUPD_VAL_SHIFT,4,2      ## @BUFCFG_PUPD_VAL_SHIFT
	.comm	_BUFCFG_PUPD_VAL_20K,4,2        ## @BUFCFG_PUPD_VAL_20K
	.comm	_BUFCFG_PUPD_VAL_2K,4,2         ## @BUFCFG_PUPD_VAL_2K
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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_set_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrfld_config_set_pin
_mrfld_config_set_pin:                  ; @mrfld_config_set_pin
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_pinconf_to_config_param
	mov	x22, x0
	mov	x0, x21
	bl	_pinconf_to_config_argument
	sub	w8, w22, #128
	cmp	w8, #4
	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, _BUFCFG_SLEWSEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BUFCFG_SLEWSEL@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w22, #0
	mov	w21, #0
	b	LBB0_16
LBB0_4:
Lloh4:
	adrp	x8, _BUFCFG_OD_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BUFCFG_OD_EN@GOTPAGEOFF]
LBB0_5:
	ldr	w21, [x8]
	cmp	w0, #0
	csel	w22, wzr, w21, eq
	b	LBB0_16
LBB0_6:
Lloh6:
	adrp	x8, _BUFCFG_Px_EN_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUFCFG_Px_EN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BUFCFG_PUPD_VAL_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BUFCFG_PUPD_VAL_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w21, w9, w8
Lloh12:
	adrp	x8, _BUFCFG_PU_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BUFCFG_PU_EN@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _BUFCFG_Px_EN_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BUFCFG_Px_EN_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _BUFCFG_PUPD_VAL_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BUFCFG_PUPD_VAL_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w21, w9, w8
Lloh20:
	adrp	x8, _BUFCFG_PD_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BUFCFG_PD_EN@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	cmp	w0, #2000
	b.eq	LBB0_13
; %bb.9:
	mov	w9, #20000
	cmp	w0, w9
	b.eq	LBB0_14
; %bb.10:
	mov	w9, #50000
	cmp	w0, w9
	b.ne	LBB0_18
; %bb.11:
Lloh22:
	adrp	x9, _BUFCFG_PUPD_VAL_50K@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BUFCFG_PUPD_VAL_50K@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	mov	w22, #0
Lloh24:
	adrp	x8, _BUFCFG_Px_EN_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BUFCFG_Px_EN_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _BUFCFG_PUPD_VAL_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BUFCFG_PUPD_VAL_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w21, w9, w8
	b	LBB0_16
LBB0_13:
Lloh30:
	adrp	x9, _BUFCFG_PUPD_VAL_2K@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BUFCFG_PUPD_VAL_2K@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh32:
	adrp	x9, _BUFCFG_PUPD_VAL_20K@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BUFCFG_PUPD_VAL_20K@GOTPAGEOFF]
LBB0_15:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _BUFCFG_PUPD_VAL_SHIFT@GOTPAGE
Lloh35:
	ldr	x10, [x10, _BUFCFG_PUPD_VAL_SHIFT@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w22, w9, w8
LBB0_16:
	mov	x0, x19
	bl	_raw_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_mrfld_update_bufcfg
	mov	x0, x19
	bl	_raw_spin_unlock_irqrestore
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_BUFCFG_Px_EN_MASK,4,2          ; @BUFCFG_Px_EN_MASK
	.comm	_BUFCFG_PUPD_VAL_MASK,4,2       ; @BUFCFG_PUPD_VAL_MASK
	.comm	_BUFCFG_PU_EN,4,2               ; @BUFCFG_PU_EN
	.comm	_BUFCFG_PUPD_VAL_50K,4,2        ; @BUFCFG_PUPD_VAL_50K
	.comm	_BUFCFG_PUPD_VAL_SHIFT,4,2      ; @BUFCFG_PUPD_VAL_SHIFT
	.comm	_BUFCFG_PUPD_VAL_20K,4,2        ; @BUFCFG_PUPD_VAL_20K
	.comm	_BUFCFG_PUPD_VAL_2K,4,2         ; @BUFCFG_PUPD_VAL_2K
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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_set_pin
.subsections_via_symbols
