	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xway_pinconf_set
_xway_pinconf_set:                      ## @xway_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
	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, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_PORT
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_30
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_gpio_clearbit
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_30
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%r15,8), %rdi
	callq	_LTQ_PINCONF_UNPACK_PARAM
	movl	%eax, %r12d
	movq	(%rbx,%r15,8), %rdi
	callq	_LTQ_PINCONF_UNPACK_ARG
	movl	%eax, %r14d
	cmpl	$128, %r12d
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %r12d
	je	LBB0_25
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %r12d
	jne	LBB0_27
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_PORT3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GPIO3_OD@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_PORT3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_GPIO3_PUDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_GPIO_DIR
	movl	%eax, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_PORT_PIN
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_GPIO_OD
	movl	%eax, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_PORT_PIN
	testl	%r14d, %r14d
	jne	LBB0_11
	jmp	LBB0_9
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_GPIO_PUDEN
	movl	%eax, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_PORT_PIN
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_gpio_setbit
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_PORT3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_GPIO3_PUDSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	$2, %r14d
	je	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %r14d
	jne	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_PORT_PIN
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	jmp	LBB0_12
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_GPIO_PUDSEL
	movl	%eax, %r13d
	cmpl	$2, %r14d
	jne	LBB0_22
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_PORT_PIN
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_gpio_setbit
	jmp	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_29
LBB0_30:
	xorl	%eax, %eax
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT3,4,2                      ## @PORT3
	.comm	_GPIO3_OD,4,2                   ## @GPIO3_OD
	.comm	_GPIO3_PUDEN,4,2                ## @GPIO3_PUDEN
	.comm	_GPIO3_PUDSEL,4,2               ## @GPIO3_PUDSEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid pull value %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid config param %04x\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xway_pinconf_set
_xway_pinconf_set:                      ; @xway_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	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
	mov	x0, x21
	bl	_PORT
	cbz	w24, LBB0_26
; %bb.1:
	mov	x23, x0
	mov	w28, w24
Lloh0:
	adrp	x24, _PORT3@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PORT3@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_GPIO_DIR
	mov	x26, x0
	ldr	x8, [x22]
	ldr	w27, [x8]
	mov	x0, x21
	bl	_PORT_PIN
	mov	x2, x0
	cbz	w25, LBB0_21
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x26
	bl	_gpio_setbit
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #8
	subs	x28, x28, #1
	b.eq	LBB0_26
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_LTQ_PINCONF_UNPACK_PARAM
	mov	x26, x0
	ldr	x0, [x20]
	bl	_LTQ_PINCONF_UNPACK_ARG
	mov	x25, x0
	cmp	w26, #128
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, #129
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, #130
	b.ne	LBB0_28
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh2:
	adrp	x8, _GPIO3_OD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO3_OD@GOTPAGEOFF]
Lloh4:
	ldr	w26, [x8]
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh5:
	adrp	x8, _GPIO3_PUDEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIO3_PUDEN@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_GPIO_OD
	mov	x26, x0
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	w27, [x8]
	mov	x0, x21
	bl	_PORT_PIN
	mov	x2, x0
	cbnz	w25, LBB0_21
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_GPIO_PUDEN
	mov	x26, x0
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	w27, [x8]
	mov	x0, x21
	bl	_PORT_PIN
	mov	x2, x0
	cbz	w25, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	mov	x1, x26
	bl	_gpio_setbit
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x8, _GPIO3_PUDSEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIO3_PUDSEL@GOTPAGEOFF]
Lloh10:
	ldr	w26, [x8]
	cmp	w25, #2
	b.eq	LBB0_24
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w25, #1
	b.ne	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	w25, [x8]
	mov	x0, x21
	bl	_PORT_PIN
	mov	x2, x0
	mov	x0, x25
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x26
	bl	_gpio_clearbit
	b	LBB0_5
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_GPIO_PUDSEL
	mov	x26, x0
	cmp	w25, #2
	b.ne	LBB0_19
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	w25, [x8]
	mov	x0, x21
	bl	_PORT_PIN
	mov	x2, x0
	mov	x0, x25
	b	LBB0_4
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_dev_err
	b	LBB0_5
LBB0_26:
	mov	w0, #0
LBB0_27:
	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_28:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	bl	_dev_err
Lloh15:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT3,4,2                      ; @PORT3
	.comm	_GPIO3_OD,4,2                   ; @GPIO3_OD
	.comm	_GPIO3_PUDEN,4,2                ; @GPIO3_PUDEN
	.comm	_GPIO3_PUDSEL,4,2               ; @GPIO3_PUDSEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid pull value %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid config param %04x\n"

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