	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xway_pinconf_get
_xway_pinconf_get:                      ## @xway_pinconf_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
	subq	$24, %rsp
	.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, %r13d
	movq	%rdi, %r15
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_LTQ_PINCONF_UNPACK_PARAM
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_PORT
	movl	%eax, %r12d
	cmpl	$128, %r14d
	je	LBB0_7
## %bb.1:
	cmpl	$129, %r14d
	je	LBB0_19
## %bb.2:
	cmpl	$130, %r14d
	jne	LBB0_20
## %bb.3:
	movq	_PORT3@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_5
## %bb.4:
	movq	_GPIO3_OD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_6
LBB0_7:
	movq	_PORT3@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_9
## %bb.8:
	movq	_GPIO3_PUDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_10
LBB0_19:
	movl	%r13d, %edi
	callq	_GPIO_DIR
	movl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_PORT_PIN
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_gpio_getbit
	movl	$129, %edi
	movl	%eax, %esi
	jmp	LBB0_17
LBB0_20:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_5:
	movl	%r13d, %edi
	callq	_GPIO_OD
	movl	%eax, %r14d
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_PORT_PIN
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_gpio_getbit
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	$130, %edi
	jmp	LBB0_17
LBB0_9:
	movl	%r13d, %edi
	callq	_GPIO_PUDEN
	movl	%eax, %r14d
LBB0_10:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_PORT_PIN
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_gpio_getbit
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	_PORT3@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_14
## %bb.13:
	movq	_GPIO3_PUDSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_15
LBB0_11:
	xorl	%ebx, %ebx
	movl	$128, %edi
	xorl	%esi, %esi
	callq	_LTQ_PINCONF_PACK
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_21
LBB0_14:
	movl	%r13d, %edi
	callq	_GPIO_PUDSEL
	movl	%eax, %r14d
LBB0_15:
	movq	(%r15), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_PORT_PIN
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_gpio_getbit
	movl	$128, %edi
	testl	%eax, %eax
	je	LBB0_16
## %bb.18:
	movl	$1, %esi
	jmp	LBB0_17
LBB0_16:
	movl	$2, %esi
LBB0_17:
	callq	_LTQ_PINCONF_PACK
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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 config param %04x\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xway_pinconf_get
_xway_pinconf_get:                      ; @xway_pinconf_get
	.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	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	ldr	x0, [x19]
	bl	_LTQ_PINCONF_UNPACK_PARAM
	mov	x24, x0
	mov	x0, x20
	bl	_PORT
	mov	x22, x0
	cmp	w24, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w24, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w24, #130
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _PORT3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT3@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _GPIO3_OD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIO3_OD@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x25, _PORT3@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PORT3@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w22, w8
	b.ne	LBB0_11
; %bb.6:
Lloh8:
	adrp	x8, _GPIO3_PUDEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIO3_PUDEN@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	b	LBB0_12
LBB0_7:
	mov	x0, x20
	bl	_GPIO_DIR
	mov	x22, x0
	ldr	x8, [x21]
	ldr	w21, [x8]
	mov	x0, x20
	bl	_PORT_PIN
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_gpio_getbit
	mov	x1, x0
	mov	w0, #129
	b	LBB0_20
LBB0_8:
	ldr	w0, [x23]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_dev_err
Lloh13:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_9:
	mov	x0, x20
	bl	_GPIO_OD
	mov	x22, x0
LBB0_10:
	ldr	x8, [x21]
	ldr	w21, [x8]
	mov	x0, x20
	bl	_PORT_PIN
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_gpio_getbit
	cmp	w0, #0
	cset	w1, eq
	mov	w0, #130
	b	LBB0_20
LBB0_11:
	mov	x0, x20
	bl	_GPIO_PUDEN
	mov	x23, x0
LBB0_12:
	ldr	x8, [x21]
	ldr	w24, [x8]
	mov	x0, x20
	bl	_PORT_PIN
	mov	x2, x0
	mov	x0, x24
	mov	x1, x23
	bl	_gpio_getbit
	cbz	w0, LBB0_15
; %bb.13:
	ldr	w8, [x25]
	cmp	w22, w8
	b.ne	LBB0_16
; %bb.14:
Lloh16:
	adrp	x8, _GPIO3_PUDSEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GPIO3_PUDSEL@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	b	LBB0_17
LBB0_15:
	mov	w0, #128
	mov	w1, #0
	b	LBB0_20
LBB0_16:
	mov	x0, x20
	bl	_GPIO_PUDSEL
	mov	x22, x0
LBB0_17:
	ldr	x8, [x21]
	ldr	w21, [x8]
	mov	x0, x20
	bl	_PORT_PIN
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_gpio_getbit
	cbz	w0, LBB0_19
; %bb.18:
	mov	w0, #128
	mov	w1, #1
	b	LBB0_20
LBB0_19:
	mov	w0, #128
	mov	w1, #2
LBB0_20:
	bl	_LTQ_PINCONF_PACK
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_21:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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 config param %04x\n"

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