	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pinmux_xway_probe
_pinmux_xway_probe:                     ## @pinmux_xway_probe
	.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
	movq	%rdi, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	_xway_info@GOTPCREL(%rip), %r15
	movq	48(%r15), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.19:
	movq	48(%r15), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_xway_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rbx
	jmp	LBB0_4
LBB0_2:
	movq	_danube_pinctrl@GOTPCREL(%rip), %rbx
LBB0_4:
	movl	(%rbx), %esi
	movq	_xway_chip@GOTPCREL(%rip), %r13
	movl	%esi, (%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpl	$0, (%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.6:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_devm_kasprintf
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rcx
	movq	_GPIO0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	40(%r15), %rax
	movq	%rdx, (%rax,%r14)
	movq	%rcx, -8(%rax,%r14)
	incq	%rbx
	movslq	(%r13), %rcx
	addq	$16, %r14
	cmpq	%rcx, %rbx
	jl	LBB0_7
LBB0_10:
	movq	_xway_pctrl_desc@GOTPCREL(%rip), %rbx
	movq	%rax, 8(%rbx)
	movq	%r12, %rdi
	callq	_dev_name
	movl	%eax, 4(%rbx)
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movl	%eax, (%r15)
	movl	%eax, 4(%r15)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	28(%rcx), %eax
	movl	%eax, 36(%r15)
	movl	24(%rcx), %eax
	movl	%eax, 32(%r15)
	movl	20(%rcx), %eax
	movl	%eax, 28(%r15)
	movups	4(%rcx), %xmm0
	movups	%xmm0, 12(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ltq_pinctrl_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_13:
	movq	%r12, 16(%r13)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movl	(%r12), %eax
	movl	%eax, 8(%r13)
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	movq	%r12, %rdi
	callq	_dev_err
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_of_property_read_bool
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	(%r13), %rax
	movq	_xway_gpio_range@GOTPCREL(%rip), %rsi
	movq	%rax, (%rsi)
	movl	8(%r15), %edi
	callq	_pinctrl_add_gpio_range
LBB0_17:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_xway_info,56,3                 ## @xway_info
	.comm	_xway_match,4,2                 ## @xway_match
	.comm	_danube_pinctrl,32,2            ## @danube_pinctrl
	.comm	_xway_chip,24,3                 ## @xway_chip
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"io%d"

	.comm	_GPIO0,8,3                      ## @GPIO0
	.comm	_xway_pctrl_desc,16,3           ## @xway_pctrl_desc
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register pinctrl driver\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register gpio chip\n"

L_.str.3:                               ## @.str.3
	.asciz	"gpio-ranges"

	.comm	_xway_gpio_range,8,2            ## @xway_gpio_range
L_.str.4:                               ## @.str.4
	.asciz	"Init done\n"

	.no_dead_strip	_pinmux_xway_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pinmux_xway_probe
_pinmux_xway_probe:                     ; @pinmux_xway_probe
	.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	x19, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
Lloh3:
	adrp	x20, _xway_info@GOTPAGE
Lloh4:
	ldr	x20, [x20, _xway_info@GOTPAGEOFF]
	ldr	x8, [x20, #48]
	str	w0, [x8]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #48]
	ldr	w0, [x8]
	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
	b	_PTR_ERR
LBB0_2:
Lloh5:
	adrp	x8, _xway_match@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xway_match@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x24, [x0]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x24, _danube_pinctrl@GOTPAGE
Lloh9:
	ldr	x24, [x24, _danube_pinctrl@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x24]
Lloh10:
	adrp	x21, _xway_chip@GOTPAGE
Lloh11:
	ldr	x21, [x21, _xway_chip@GOTPAGEOFF]
	str	w1, [x21]
Lloh12:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x26, #0
	mov	x22, #0
Lloh14:
	adrp	x27, _GPIO0@GOTPAGE
Lloh15:
	ldr	x27, [x27, _GPIO0@GOTPAGEOFF]
Lloh16:
	adrp	x23, l_.str@PAGE
Lloh17:
	add	x23, x23, l_.str@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	bl	_devm_kasprintf
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x0
	ldr	x9, [x27]
	add	x9, x22, x9
	ldr	x0, [x20, #40]
	add	x10, x0, x26
	stp	x8, x9, [x10]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x26, x26, #16
	cmp	x22, x8
	b.lt	LBB0_8
LBB0_10:
Lloh18:
	adrp	x22, _xway_pctrl_desc@GOTPAGE
Lloh19:
	ldr	x22, [x22, _xway_pctrl_desc@GOTPAGEOFF]
	str	x0, [x22, #8]
	mov	x0, x19
	bl	_dev_name
	ldr	w8, [x21]
	stp	w8, w0, [x22]
	stp	w8, w8, [x20]
	ldr	w8, [x24, #28]
	str	w8, [x20, #36]
	ldur	d0, [x24, #20]
	stur	d0, [x20, #28]
	ldur	q0, [x24, #4]
	stur	q0, [x20, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_ltq_pinctrl_register
	cbz	w0, LBB0_13
; %bb.11:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_12:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_13:
	str	x19, [x21, #16]
Lloh25:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x19]
	stp	w9, w8, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_devm_gpiochip_add_data
	cbz	w0, LBB0_17
; %bb.14:
	mov	x22, x0
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_dev_err
LBB0_16:
	mov	x0, x22
	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_17:
	ldr	w0, [x19]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_property_read_bool
	cbnz	w0, LBB0_19
; %bb.18:
	ldr	d0, [x21]
Lloh32:
	adrp	x1, _xway_gpio_range@GOTPAGE
Lloh33:
	ldr	x1, [x1, _xway_gpio_range@GOTPAGEOFF]
	str	d0, [x1]
	ldr	w0, [x20, #8]
	bl	_pinctrl_add_gpio_range
LBB0_19:
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w22, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_xway_info,56,3                 ; @xway_info
	.comm	_xway_match,4,2                 ; @xway_match
	.comm	_danube_pinctrl,32,2            ; @danube_pinctrl
	.comm	_xway_chip,24,3                 ; @xway_chip
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"io%d"

	.comm	_GPIO0,8,3                      ; @GPIO0
	.comm	_xway_pctrl_desc,16,3           ; @xway_pctrl_desc
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register pinctrl driver\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register gpio chip\n"

l_.str.3:                               ; @.str.3
	.asciz	"gpio-ranges"

	.comm	_xway_gpio_range,8,2            ; @xway_gpio_range
l_.str.4:                               ; @.str.4
	.asciz	"Init done\n"

	.no_dead_strip	_pinmux_xway_probe
.subsections_via_symbols
