	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sama5d2_piobu_probe
_sama5d2_piobu_probe:                   ## @sama5d2_piobu_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movl	4(%r14), %eax
	movl	%eax, 56(%r12)
	movq	%r14, 48(%r12)
	movl	(%r14), %edi
	movl	%edi, 40(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_sama5d2_piobu_get_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_sama5d2_piobu_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_sama5d2_piobu_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_sama5d2_piobu_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_sama5d2_piobu_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$-1, (%r12)
	movq	_PIOBU_NUM@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, 4(%r12)
	movq	$0, 8(%r12)
	callq	_syscon_node_to_regmap
	movl	%eax, 64(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movl	64(%r12), %edi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	64(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_4
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_4:
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_sama5d2_piobu_setup_pin
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_6
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_sama5d2_piobu_get_direction,4,2 ## @sama5d2_piobu_get_direction
	.comm	_sama5d2_piobu_direction_input,4,2 ## @sama5d2_piobu_direction_input
	.comm	_sama5d2_piobu_direction_output,4,2 ## @sama5d2_piobu_direction_output
	.comm	_sama5d2_piobu_get,4,2          ## @sama5d2_piobu_get
	.comm	_sama5d2_piobu_set,4,2          ## @sama5d2_piobu_set
	.comm	_PIOBU_NUM,4,2                  ## @PIOBU_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get syscon regmap %ld\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to add gpiochip %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to setup pin: %d %d\n"

	.no_dead_strip	_sama5d2_piobu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sama5d2_piobu_probe
_sama5d2_piobu_probe:                   ; @sama5d2_piobu_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldp	w0, w8, [x19]
	str	w8, [x20, #56]
	str	x19, [x20, #48]
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
	str	w0, [x20, #40]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _sama5d2_piobu_get_direction@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sama5d2_piobu_get_direction@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
Lloh9:
	adrp	x8, _sama5d2_piobu_direction_input@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sama5d2_piobu_direction_input@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _sama5d2_piobu_direction_output@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sama5d2_piobu_direction_output@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh15:
	adrp	x8, _sama5d2_piobu_get@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sama5d2_piobu_get@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _sama5d2_piobu_set@GOTPAGE
Lloh19:
	ldr	x9, [x9, _sama5d2_piobu_set@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
	mov	w8, #-1
	str	w8, [x20]
Lloh21:
	adrp	x23, _PIOBU_NUM@GOTPAGE
Lloh22:
	ldr	x23, [x23, _PIOBU_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [x20, #4]
	str	xzr, [x20, #8]
	bl	_syscon_node_to_regmap
	str	w0, [x20, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #64]
	bl	_PTR_ERR
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #64]
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	cbz	w0, LBB0_7
; %bb.5:
	mov	x21, x0
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
LBB0_6:
	bl	_dev_err
	b	LBB0_12
LBB0_7:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	w22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_sama5d2_piobu_setup_pin
	cbnz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_9
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_13:
	mov	x21, x0
	str	x21, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_sama5d2_piobu_get_direction,4,2 ; @sama5d2_piobu_get_direction
	.comm	_sama5d2_piobu_direction_input,4,2 ; @sama5d2_piobu_direction_input
	.comm	_sama5d2_piobu_direction_output,4,2 ; @sama5d2_piobu_direction_output
	.comm	_sama5d2_piobu_get,4,2          ; @sama5d2_piobu_get
	.comm	_sama5d2_piobu_set,4,2          ; @sama5d2_piobu_set
	.comm	_PIOBU_NUM,4,2                  ; @PIOBU_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get syscon regmap %ld\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to add gpiochip %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to setup pin: %d %d\n"

	.no_dead_strip	_sama5d2_piobu_probe
.subsections_via_symbols
