	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chv_config_get
_chv_config_get:                        ## @chv_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	%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, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %ebx
	movq	_chv_lock@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_raw_spin_lock_irqsave
	movq	_CHV_PADCTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_chv_padreg
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %r12d
	movq	_CHV_PADCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_chv_padreg
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_raw_spin_unlock_irqrestore
	movq	_CHV_PADCTRL0_TERM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r12d, %edx
	movq	_CHV_PADCTRL0_TERM_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_17
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movq	_CHV_PADCTRL1_ODEN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r14d, (%rcx)
	jne	LBB0_13
	jmp	LBB0_4
LBB0_17:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	movq	_CHV_PADCTRL0_TERM_UP@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.7:
	addl	$-133, %edx
	xorl	%eax, %eax
	cmpl	$3, %edx
	jae	LBB0_13
## %bb.8:
	movslq	%edx, %rax
	leaq	l_switch.table.chv_config_get(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_13
LBB0_9:
	testl	%edx, %edx
	je	LBB0_4
## %bb.10:
	movq	_CHV_PADCTRL0_TERM_UP@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_4
## %bb.11:
	xorl	%eax, %eax
	cmpl	$133, %edx
	movl	$5000, %ecx                     ## imm = 0x1388
	cmovnel	%eax, %ecx
	cmpl	$134, %edx
	movl	$20000, %eax                    ## imm = 0x4E20
	cmovnel	%ecx, %eax
	jmp	LBB0_13
LBB0_15:
	movq	_CHV_PADCTRL0_GPIOCFG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_CHV_PADCTRL0_GPIOCFG_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movq	_CHV_PADCTRL0_GPIOCFG_HIZ@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %r12d
	je	LBB0_13
## %bb.16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_2:
	testl	%edx, %edx
	je	LBB0_3
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_3:
	xorl	%eax, %eax
LBB0_13:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pinconf_to_config_packed
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_14:
	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_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_15
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_chv_lock,4,2                   ## @chv_lock
	.comm	_CHV_PADCTRL0,4,2               ## @CHV_PADCTRL0
	.comm	_CHV_PADCTRL1,4,2               ## @CHV_PADCTRL1
	.comm	_CHV_PADCTRL0_TERM_MASK,4,2     ## @CHV_PADCTRL0_TERM_MASK
	.comm	_CHV_PADCTRL0_TERM_SHIFT,4,2    ## @CHV_PADCTRL0_TERM_SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CHV_PADCTRL0_TERM_UP,4,2       ## @CHV_PADCTRL0_TERM_UP
	.comm	_CHV_PADCTRL1_ODEN,4,2          ## @CHV_PADCTRL1_ODEN
	.comm	_CHV_PADCTRL0_GPIOCFG_MASK,4,2  ## @CHV_PADCTRL0_GPIOCFG_MASK
	.comm	_CHV_PADCTRL0_GPIOCFG_SHIFT,4,2 ## @CHV_PADCTRL0_GPIOCFG_SHIFT
	.comm	_CHV_PADCTRL0_GPIOCFG_HIZ,4,2   ## @CHV_PADCTRL0_GPIOCFG_HIZ
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_chv_config_get
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.chv_config_get
l_switch.table.chv_config_get:
	.long	5000                            ## 0x1388
	.long	20000                           ## 0x4e20
	.long	1000                            ## 0x3e8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chv_config_get
_chv_config_get:                        ; @chv_config_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	x22, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x23, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
Lloh0:
	adrp	x24, _chv_lock@GOTPAGE
Lloh1:
	ldr	x24, [x24, _chv_lock@GOTPAGEOFF]
	mov	x0, x24
	bl	_raw_spin_lock_irqsave
Lloh2:
	adrp	x8, _CHV_PADCTRL0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHV_PADCTRL0@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_chv_padreg
	bl	_readl
	mov	x21, x0
Lloh5:
	adrp	x8, _CHV_PADCTRL1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHV_PADCTRL1@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_chv_padreg
	bl	_readl
	mov	x22, x0
	mov	x0, x24
	bl	_raw_spin_unlock_irqrestore
	sub	w9, w20, #128
	cmp	w9, #4
	b.hi	LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _CHV_PADCTRL0_TERM_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHV_PADCTRL0_TERM_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x10, _CHV_PADCTRL0_TERM_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CHV_PADCTRL0_TERM_SHIFT@GOTPAGEOFF]
	and	w8, w8, w21
Lloh13:
	ldr	w10, [x10]
	asr	w8, w8, w10
Lloh14:
	adrp	x10, lJTI0_0@PAGE
Lloh15:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh16:
	adrp	x8, _CHV_PADCTRL1_ODEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CHV_PADCTRL1_ODEN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_14
	b	LBB0_12
LBB0_3:
Lloh19:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
Lloh21:
	adrp	x9, _CHV_PADCTRL0_TERM_UP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CHV_PADCTRL0_TERM_UP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_12
; %bb.5:
	sub	w8, w8, #133
	cmp	w8, #3
	b.hs	LBB0_14
; %bb.6:
Lloh24:
	adrp	x9, l_switch.table.chv_config_get@PAGE
Lloh25:
	add	x9, x9, l_switch.table.chv_config_get@PAGEOFF
	ldr	w1, [x9, w8, sxtw #2]
	b	LBB0_15
LBB0_7:
	cbz	w8, LBB0_12
; %bb.8:
Lloh26:
	adrp	x9, _CHV_PADCTRL0_TERM_UP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CHV_PADCTRL0_TERM_UP@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w21
	b.ne	LBB0_12
; %bb.9:
	mov	w9, #5000
	cmp	w8, #133
	csel	w9, w9, wzr, eq
	mov	w10, #20000
	cmp	w8, #134
	csel	w1, w10, w9, eq
	b	LBB0_15
LBB0_10:
	mov	w1, #0
Lloh29:
	adrp	x8, _CHV_PADCTRL0_GPIOCFG_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CHV_PADCTRL0_GPIOCFG_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh32:
	adrp	x9, _CHV_PADCTRL0_GPIOCFG_SHIFT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CHV_PADCTRL0_GPIOCFG_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh35:
	adrp	x9, _CHV_PADCTRL0_GPIOCFG_HIZ@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CHV_PADCTRL0_GPIOCFG_HIZ@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
	b	LBB0_15
LBB0_11:
	cbz	w8, LBB0_14
LBB0_12:
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_14:
	mov	w1, #0
LBB0_15:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_16:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_chv_lock,4,2                   ; @chv_lock
	.comm	_CHV_PADCTRL0,4,2               ; @CHV_PADCTRL0
	.comm	_CHV_PADCTRL1,4,2               ; @CHV_PADCTRL1
	.comm	_CHV_PADCTRL0_TERM_MASK,4,2     ; @CHV_PADCTRL0_TERM_MASK
	.comm	_CHV_PADCTRL0_TERM_SHIFT,4,2    ; @CHV_PADCTRL0_TERM_SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CHV_PADCTRL0_TERM_UP,4,2       ; @CHV_PADCTRL0_TERM_UP
	.comm	_CHV_PADCTRL1_ODEN,4,2          ; @CHV_PADCTRL1_ODEN
	.comm	_CHV_PADCTRL0_GPIOCFG_MASK,4,2  ; @CHV_PADCTRL0_GPIOCFG_MASK
	.comm	_CHV_PADCTRL0_GPIOCFG_SHIFT,4,2 ; @CHV_PADCTRL0_GPIOCFG_SHIFT
	.comm	_CHV_PADCTRL0_GPIOCFG_HIZ,4,2   ; @CHV_PADCTRL0_GPIOCFG_HIZ
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_chv_config_get
	.p2align	2                               ; @switch.table.chv_config_get
l_switch.table.chv_config_get:
	.long	5000                            ; 0x1388
	.long	20000                           ; 0x4e20
	.long	1000                            ; 0x3e8

.subsections_via_symbols
