	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3722_pinconf_set
_as3722_pinconf_set:                    ## @as3722_pinconf_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	callq	_pinctrl_dev_get_drvdata
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	movl	%r12d, %r12d
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	leaq	LJTI0_0(%rip), %r14
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AS3722_GPIO_MODE_PULL_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AS3722_GPIO_MODE_PULL_UP@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	notl	%eax
	andl	%eax, %edx
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, (%rcx,%r12,4)
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdi
	callq	_pinconf_to_config_param
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rcx
	movl	(%rcx,%r12,4), %edx
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AS3722_GPIO_MODE_OPEN_DRAIN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AS3722_GPIO_MODE_PULL_UP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AS3722_GPIO_MODE_PULL_DOWN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AS3722_GPIO_MODE_HIGH_IMPED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_AS3722_GPIO_MODE_PULL_UP,4,2   ## @AS3722_GPIO_MODE_PULL_UP
	.comm	_AS3722_GPIO_MODE_PULL_DOWN,4,2 ## @AS3722_GPIO_MODE_PULL_DOWN
	.comm	_AS3722_GPIO_MODE_HIGH_IMPED,4,2 ## @AS3722_GPIO_MODE_HIGH_IMPED
	.comm	_AS3722_GPIO_MODE_OPEN_DRAIN,4,2 ## @AS3722_GPIO_MODE_OPEN_DRAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Properties not supported\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_as3722_pinconf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3722_pinconf_set
_as3722_pinconf_set:                    ; @as3722_pinconf_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	x21, x3
	mov	x19, x2
	mov	x22, x1
	bl	_pinctrl_dev_get_drvdata
	cbz	w21, LBB0_10
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _AS3722_GPIO_MODE_OPEN_DRAIN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AS3722_GPIO_MODE_OPEN_DRAIN@GOTPAGEOFF]
Lloh2:
	adrp	x24, _AS3722_GPIO_MODE_PULL_UP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AS3722_GPIO_MODE_PULL_UP@GOTPAGEOFF]
Lloh4:
	adrp	x25, _AS3722_GPIO_MODE_PULL_DOWN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _AS3722_GPIO_MODE_PULL_DOWN@GOTPAGEOFF]
	mov	w22, w22
	mov	w21, w21
Lloh6:
	adrp	x26, _AS3722_GPIO_MODE_HIGH_IMPED@GOTPAGE
Lloh7:
	ldr	x26, [x26, _AS3722_GPIO_MODE_HIGH_IMPED@GOTPAGEOFF]
Lloh8:
	adrp	x27, lJTI0_0@PAGE
Lloh9:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x24]
	ldr	w11, [x25]
	orr	w10, w11, w10
	bic	w9, w9, w10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x8, x22, lsl #2]
	add	x19, x19, #8
	subs	x21, x21, #1
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	sub	w10, w0, #128
	cmp	w10, #5
	b.hi	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	w9, [x8, x22, lsl #2]
	adr	x11, LBB0_2
	ldrb	w12, [x27, x10]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x23]
	orr	w9, w10, w9
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x24]
	orr	w9, w10, w9
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x25]
	orr	w9, w10, w9
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x26]
	orr	w9, w10, w9
	b	LBB0_3
LBB0_10:
	mov	w0, #0
LBB0_11:
	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_12:
	ldr	w0, [x20, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_AS3722_GPIO_MODE_PULL_UP,4,2   ; @AS3722_GPIO_MODE_PULL_UP
	.comm	_AS3722_GPIO_MODE_PULL_DOWN,4,2 ; @AS3722_GPIO_MODE_PULL_DOWN
	.comm	_AS3722_GPIO_MODE_HIGH_IMPED,4,2 ; @AS3722_GPIO_MODE_HIGH_IMPED
	.comm	_AS3722_GPIO_MODE_OPEN_DRAIN,4,2 ; @AS3722_GPIO_MODE_OPEN_DRAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Properties not supported\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_as3722_pinconf_set
.subsections_via_symbols
