	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx_pin_config_set
_zx_pin_config_set:                     ## @zx_pin_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	8(%rax), %rcx
	movq	(%rcx), %rdx
	movl	%ebx, %ecx
	movq	(%rdx,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movq	8(%r14), %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	(%rax), %rdi
	callq	_readl
	movl	%eax, %r13d
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.4:
	movl	%r12d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_ZX_PULL_DOWN@GOTPCREL(%rip), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%r14), %ecx
	shll	%cl, %eax
	orl	%eax, %r13d
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r12,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %ebx
	movq	(%r15,%r12,8), %rdi
	callq	_pinconf_to_config_argument
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rbx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ZX_SLEW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%r14), %ecx
	shll	%cl, %edx
	orl	%edx, %r13d
	jmp	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ZX_INPUT_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ZX_DS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movzbl	(%r14), %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %r13d
	movl	%eax, %edi
	callq	_ZX_DS_VALUE
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ZX_PULL_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	notl	%edx
	movzbl	(%r14), %ecx
	shll	%cl, %edx
	andl	%edx, %r13d
	jmp	LBB0_17
LBB0_18:
	movq	8(%r14), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movl	%r13d, %edi
	callq	_writel
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ZX_PULL_DOWN,4,2               ## @ZX_PULL_DOWN
	.comm	_ZX_PULL_UP,4,2                 ## @ZX_PULL_UP
	.comm	_ZX_INPUT_ENABLE,4,2            ## @ZX_INPUT_ENABLE
	.comm	_ZX_DS_MASK,4,2                 ## @ZX_DS_MASK
	.comm	_ZX_SLEW,4,2                    ## @ZX_SLEW
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_zx_pin_config_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx_pin_config_set
_zx_pin_config_set:                     ; @zx_pin_config_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x23, [x8, w21, uxtw #3]
	cbz	x23, LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x23, #8]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	cbz	w22, LBB0_14
; %bb.2:
	mov	w24, w22
Lloh0:
	adrp	x27, _ZX_DS_MASK@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ZX_DS_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x28, _ZX_PULL_UP@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ZX_PULL_UP@GOTPAGEOFF]
Lloh4:
	adrp	x25, lJTI0_0@PAGE
Lloh5:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh6:
	adrp	x26, _ZX_PULL_DOWN@GOTPAGE
Lloh7:
	ldr	x26, [x26, _ZX_PULL_DOWN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_argument
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_5
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x8, _ZX_SLEW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZX_SLEW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mvn	w8, w8
	ldr	w9, [x23]
	lsl	w8, w8, w9
	and	w21, w8, w21
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh11:
	adrp	x8, _ZX_INPUT_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ZX_INPUT_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x23]
	lsl	w8, w8, w9
	bic	w21, w21, w8
	bl	_ZX_DS_VALUE
	ldr	w8, [x23]
	lsl	w8, w0, w8
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x23]
	lsl	w8, w8, w9
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w21, w8, w21
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #8
	subs	x24, x24, #1
	b.ne	LBB0_3
LBB0_14:
	ldr	x8, [x20]
	ldr	x9, [x23, #8]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	mov	w0, #0
	b	LBB0_17
LBB0_15:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh16:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ZX_PULL_DOWN,4,2               ; @ZX_PULL_DOWN
	.comm	_ZX_PULL_UP,4,2                 ; @ZX_PULL_UP
	.comm	_ZX_INPUT_ENABLE,4,2            ; @ZX_INPUT_ENABLE
	.comm	_ZX_DS_MASK,4,2                 ; @ZX_DS_MASK
	.comm	_ZX_SLEW,4,2                    ; @ZX_SLEW
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_zx_pin_config_set
.subsections_via_symbols
