	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pic32_gpio_probe
_pic32_gpio_probe:                      ## @pic32_gpio_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	-48(%rbp), %rbx
	movq	_pic32_gpio_banks@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jae	LBB0_4
## %bb.5:
	movq	(%r12), %r13
	movq	-48(%rbp), %r12
	shlq	$5, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 28(%r13,%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	(%r12,%r13), %rax
	addq	$28, %rax
	movl	(%rax), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 24(%r13,%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	24(%r13,%r12), %edi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_13:
	leaq	(%r12,%r13), %rcx
	leaq	(%r12,%r13), %rax
	addq	$8, %rax
	movq	%r14, 16(%r13,%r12)
	movq	%r15, 8(%r13,%r12)
	movq	%rcx, %r13
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rcx, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movq	_pic32_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_gpiochip_set_chained_irqchip
	jmp	LBB0_18
LBB0_14:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_16:
	movl	%eax, %r15d
	movq	-48(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	callq	_gpiochip_remove
	movl	%r15d, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"microchip,gpio-bank"

L_.str.1:                               ## @.str.1
	.asciz	"microchip,gpio-bank property not found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pic32_gpio_banks,8,3           ## @pic32_gpio_banks
L_.str.2:                               ## @.str.2
	.asciz	"invalid microchip,gpio-bank property\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.3:                               ## @.str.3
	.asciz	"clk get failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"clk enable failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to add GPIO chip %u: %d\n"

	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
L_.str.6:                               ## @.str.6
	.asciz	"Failed to add IRQ chip %u: %d\n"

	.comm	_pic32_gpio_irq_handler,4,2     ## @pic32_gpio_irq_handler
	.no_dead_strip	_pic32_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pic32_gpio_probe
_pic32_gpio_probe:                      ; @pic32_gpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x21, [sp, #24]
Lloh4:
	adrp	x20, _pic32_gpio_banks@GOTPAGE
Lloh5:
	ldr	x20, [x20, _pic32_gpio_banks@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_5
; %bb.3:
	ldr	x24, [x20]
	ldr	x25, [sp, #24]
	add	x21, x24, x25, lsl #5
Lloh6:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	mov	x20, x21
	str	w0, [x20, #28]!
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x20]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.9:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	add	x23, x24, x25, lsl #5
	str	w0, [x23, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x23, #24]
	cbz	x8, LBB0_11
; %bb.10:
	bl	_PTR_ERR
	mov	x20, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_11:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_13
; %bb.12:
	mov	x23, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x20, x23
	b	LBB0_7
LBB0_13:
	add	x23, x24, x25, lsl #5
	stp	x22, x19, [x23, #8]!
	mov	x0, x23
	mov	x1, x21
	bl	_gpiochip_add_data
	tbnz	w0, #31, LBB0_16
; %bb.14:
Lloh18:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh19:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x21
	mov	w2, #0
	bl	_gpiochip_irqchip_add
	tbnz	w0, #31, LBB0_17
; %bb.15:
Lloh24:
	adrp	x8, _pic32_gpio_irq_handler@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pic32_gpio_irq_handler@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_gpiochip_set_chained_irqchip
	mov	w20, #0
	b	LBB0_7
LBB0_16:
	mov	x22, x0
	ldr	x8, [sp, #24]
	stp	x8, x22, [sp]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x20, x22
	b	LBB0_7
LBB0_17:
	mov	x22, x0
	ldr	x8, [sp, #24]
	stp	x8, x22, [sp]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x23
	bl	_gpiochip_remove
	mov	x20, x22
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"microchip,gpio-bank"

l_.str.1:                               ; @.str.1
	.asciz	"microchip,gpio-bank property not found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pic32_gpio_banks,8,3           ; @pic32_gpio_banks
l_.str.2:                               ; @.str.2
	.asciz	"invalid microchip,gpio-bank property\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.3:                               ; @.str.3
	.asciz	"clk get failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"clk enable failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to add GPIO chip %u: %d\n"

	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
l_.str.6:                               ; @.str.6
	.asciz	"Failed to add IRQ chip %u: %d\n"

	.comm	_pic32_gpio_irq_handler,4,2     ; @pic32_gpio_irq_handler
	.no_dead_strip	_pic32_gpio_probe
.subsections_via_symbols
