	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plgpio_probe_dt
_plgpio_probe_dt:                       ## @plgpio_probe_dt
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_of_machine_is_compatible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_spear310_p2o@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_spear310_o2p@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_PTO_WDATA_REG@GOTPCREL(%rip), %rax
	movq	_PTO_DIR_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PTO_IE_REG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_PTO_RDATA_REG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_PTO_MIS_REG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_3
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_3:
	movq	-48(%rbp), %rax
	movq	%rax, 56(%rbx)
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %r13
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_of_property_read_u32
	xorl	%ecx, %ecx
	negl	%eax
	sbbl	%ecx, %ecx
	orl	-48(%rbp), %ecx
	movl	%ecx, 8(%rbx)
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_4
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_11
LBB0_4:
	movq	-48(%rbp), %rax
	movq	%rax, 48(%rbx)
	leaq	L_.str.6(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_5
## %bb.13:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_11
LBB0_5:
	movq	-48(%rbp), %rax
	movq	%rax, 40(%rbx)
	leaq	L_.str.8(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_6
## %bb.14:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_11
LBB0_6:
	movq	-48(%rbp), %rax
	movq	%rax, 32(%rbx)
	leaq	L_.str.10(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_7
## %bb.15:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_11
LBB0_7:
	movq	-48(%rbp), %rax
	movq	%rax, 24(%rbx)
	leaq	L_.str.12(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_8
## %bb.16:
	leaq	L_.str.13(%rip), %rsi
LBB0_11:
	movq	%r15, %rdi
	callq	_dev_err
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rbx)
	leaq	L_.str.14(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_9
## %bb.17:
	movl	$-1, 12(%rbx)
	jmp	LBB0_18
LBB0_9:
	movl	-48(%rbp), %eax
	movl	%eax, 12(%rbx)
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st,spear310"

	.comm	_spear310_p2o,4,2               ## @spear310_p2o
	.comm	_spear310_o2p,4,2               ## @spear310_o2p
	.comm	_PTO_WDATA_REG,4,2              ## @PTO_WDATA_REG
	.comm	_PTO_DIR_REG,4,2                ## @PTO_DIR_REG
	.comm	_PTO_IE_REG,4,2                 ## @PTO_IE_REG
	.comm	_PTO_RDATA_REG,4,2              ## @PTO_RDATA_REG
	.comm	_PTO_MIS_REG,4,2                ## @PTO_MIS_REG
L_.str.1:                               ## @.str.1
	.asciz	"st-plgpio,ngpio"

L_.str.2:                               ## @.str.2
	.asciz	"DT: Invalid ngpio field\n"

L_.str.3:                               ## @.str.3
	.asciz	"st-plgpio,enb-reg"

L_.str.4:                               ## @.str.4
	.asciz	"st-plgpio,wdata-reg"

L_.str.5:                               ## @.str.5
	.asciz	"DT: Invalid wdata reg\n"

L_.str.6:                               ## @.str.6
	.asciz	"st-plgpio,dir-reg"

L_.str.7:                               ## @.str.7
	.asciz	"DT: Invalid dir reg\n"

L_.str.8:                               ## @.str.8
	.asciz	"st-plgpio,ie-reg"

L_.str.9:                               ## @.str.9
	.asciz	"DT: Invalid ie reg\n"

L_.str.10:                              ## @.str.10
	.asciz	"st-plgpio,rdata-reg"

L_.str.11:                              ## @.str.11
	.asciz	"DT: Invalid rdata reg\n"

L_.str.12:                              ## @.str.12
	.asciz	"st-plgpio,mis-reg"

L_.str.13:                              ## @.str.13
	.asciz	"DT: Invalid mis reg\n"

L_.str.14:                              ## @.str.14
	.asciz	"st-plgpio,eit-reg"

	.no_dead_strip	_plgpio_probe_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plgpio_probe_dt
_plgpio_probe_dt:                       ; @plgpio_probe_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_of_machine_is_compatible
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _spear310_p2o@GOTPAGE
Lloh6:
	ldr	x8, [x8, _spear310_p2o@GOTPAGEOFF]
Lloh7:
	adrp	x9, _spear310_o2p@GOTPAGE
Lloh8:
	ldr	x9, [x9, _spear310_o2p@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #64]
Lloh11:
	adrp	x8, _PTO_WDATA_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PTO_WDATA_REG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PTO_DIR_REG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PTO_DIR_REG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _PTO_IE_REG@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PTO_IE_REG@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh19:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _PTO_RDATA_REG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PTO_RDATA_REG@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _PTO_MIS_REG@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PTO_MIS_REG@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_2:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_4
; %bb.3:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_4:
	ldr	x8, [sp, #8]
	str	x8, [x20, #56]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_u32
	ldr	w8, [sp, #8]
	cmp	w0, #0
	csinv	w8, w8, wzr, eq
	str	w8, [x20, #8]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_6
; %bb.5:
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_6:
	ldr	x8, [sp, #8]
	str	x8, [x20, #48]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_8
; %bb.7:
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_14
LBB0_8:
	ldr	x8, [sp, #8]
	str	x8, [x20, #40]
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_10
; %bb.9:
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_14
LBB0_10:
	ldr	x8, [sp, #8]
	str	x8, [x20, #32]
Lloh44:
	adrp	x1, l_.str.10@PAGE
Lloh45:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_12
; %bb.11:
Lloh46:
	adrp	x1, l_.str.11@PAGE
Lloh47:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_14
LBB0_12:
	ldr	x8, [sp, #8]
	str	x8, [x20, #24]
Lloh48:
	adrp	x1, l_.str.12@PAGE
Lloh49:
	add	x1, x1, l_.str.12@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_16
; %bb.13:
Lloh50:
	adrp	x1, l_.str.13@PAGE
Lloh51:
	add	x1, x1, l_.str.13@PAGEOFF
LBB0_14:
	mov	x0, x21
	bl	_dev_err
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	ldr	x8, [sp, #8]
	str	x8, [x20, #16]
Lloh52:
	adrp	x1, l_.str.14@PAGE
Lloh53:
	add	x1, x1, l_.str.14@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_u32
	mov	w19, #0
	cbz	w0, LBB0_18
; %bb.17:
	mov	w8, #-1
	str	w8, [x20, #12]
	b	LBB0_15
LBB0_18:
	ldr	x8, [sp, #8]
	str	w8, [x20, #12]
	b	LBB0_15
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st,spear310"

	.comm	_spear310_p2o,4,2               ; @spear310_p2o
	.comm	_spear310_o2p,4,2               ; @spear310_o2p
	.comm	_PTO_WDATA_REG,4,2              ; @PTO_WDATA_REG
	.comm	_PTO_DIR_REG,4,2                ; @PTO_DIR_REG
	.comm	_PTO_IE_REG,4,2                 ; @PTO_IE_REG
	.comm	_PTO_RDATA_REG,4,2              ; @PTO_RDATA_REG
	.comm	_PTO_MIS_REG,4,2                ; @PTO_MIS_REG
l_.str.1:                               ; @.str.1
	.asciz	"st-plgpio,ngpio"

l_.str.2:                               ; @.str.2
	.asciz	"DT: Invalid ngpio field\n"

l_.str.3:                               ; @.str.3
	.asciz	"st-plgpio,enb-reg"

l_.str.4:                               ; @.str.4
	.asciz	"st-plgpio,wdata-reg"

l_.str.5:                               ; @.str.5
	.asciz	"DT: Invalid wdata reg\n"

l_.str.6:                               ; @.str.6
	.asciz	"st-plgpio,dir-reg"

l_.str.7:                               ; @.str.7
	.asciz	"DT: Invalid dir reg\n"

l_.str.8:                               ; @.str.8
	.asciz	"st-plgpio,ie-reg"

l_.str.9:                               ; @.str.9
	.asciz	"DT: Invalid ie reg\n"

l_.str.10:                              ; @.str.10
	.asciz	"st-plgpio,rdata-reg"

l_.str.11:                              ; @.str.11
	.asciz	"DT: Invalid rdata reg\n"

l_.str.12:                              ; @.str.12
	.asciz	"st-plgpio,mis-reg"

l_.str.13:                              ; @.str.13
	.asciz	"DT: Invalid mis reg\n"

l_.str.14:                              ; @.str.14
	.asciz	"st-plgpio,eit-reg"

	.no_dead_strip	_plgpio_probe_dt
.subsections_via_symbols
