	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chv_config_set
_chv_config_set:                        ## @chv_config_set
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movl	%esi, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_chv_pad_locked
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r14,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movq	(%rbx,%r14,8), %rdi
	callq	_pinconf_to_config_argument
	movl	%eax, %r12d
	leal	-130(%r15), %eax
	cmpl	$3, %eax
	jae	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_chv_config_set_pull
	testl	%eax, %eax
	je	LBB0_13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %r15d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %r15d
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_chv_config_set_oden
	testl	%eax, %eax
	jne	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_dev_dbg
	incq	%r14
	cmpq	%r14, -64(%rbp)                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_3
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pin %d set config %d arg %u\n"

	.no_dead_strip	_chv_config_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chv_config_set
_chv_config_set:                        ; @chv_config_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	mov	x1, x20
	bl	_chv_pad_locked
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_3:
	cbz	w22, LBB0_12
; %bb.4:
	mov	w25, w22
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x24
	bl	_chv_config_set_pull
	cbnz	w0, LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x21]
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	mov	x4, x24
	bl	_dev_dbg
	add	x19, x19, #8
	subs	x25, x25, #1
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x23, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_argument
	mov	x24, x0
	sub	w8, w23, #130
	cmp	w8, #3
	b.lo	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, #128
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, #129
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_chv_config_set_oden
	cbz	w0, LBB0_6
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_chv_config_set_oden
	cbz	w0, LBB0_6
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh4:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pin %d set config %d arg %u\n"

	.no_dead_strip	_chv_config_set
.subsections_via_symbols
