	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx_reboot_probe
_zx_reboot_probe:                       ## @zx_reboot_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	(%rdi), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_of_iomap
	movq	_base@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rdx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_of_find_compatible_node
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	movq	_pcu_base@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	movq	%rbx, %rdi
	callq	_of_node_put
	cmpl	$0, (%r13)
	je	LBB0_5
## %bb.2:
	movq	%r15, %rbx
	movq	_zx_restart_nb@GOTPCREL(%rip), %rdi
	callq	_register_restart_handler
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_iounmap
	movl	(%r13), %edi
	callq	_iounmap
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movl	%r15d, %r12d
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movl	(%r15), %edi
	callq	_iounmap
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_6:
	subl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_base,4,2                       ## @base
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to map base address"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"zte,zx296702-pcu"

	.comm	_pcu_base,4,2                   ## @pcu_base
L_.str.2:                               ## @.str.2
	.asciz	"failed to map pcu_base address"

	.comm	_zx_restart_nb,4,2              ## @zx_restart_nb
L_.str.3:                               ## @.str.3
	.asciz	"Register restart handler failed(err=%d)\n"

	.no_dead_strip	_zx_reboot_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx_reboot_probe
_zx_reboot_probe:                       ; @zx_reboot_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x0, [x0]
	mov	w1, #0
	bl	_of_iomap
Lloh0:
	adrp	x21, _base@GOTPAGE
Lloh1:
	ldr	x21, [x21, _base@GOTPAGEOFF]
	str	w0, [x21]
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	x1, #0
	bl	_of_find_compatible_node
	mov	x20, x0
	mov	w1, #0
	bl	_of_iomap
Lloh4:
	adrp	x22, _pcu_base@GOTPAGE
Lloh5:
	ldr	x22, [x22, _pcu_base@GOTPAGEOFF]
	str	w0, [x22]
	mov	x0, x20
	bl	_of_node_put
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.2:
Lloh6:
	adrp	x0, _zx_restart_nb@GOTPAGE
Lloh7:
	ldr	x0, [x0, _zx_restart_nb@GOTPAGEOFF]
	bl	_register_restart_handler
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w0, [x21]
	bl	_iounmap
	ldr	w0, [x22]
	bl	_iounmap
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x21]
	bl	_iounmap
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	w0, #1
	bl	_WARN
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_base,4,2                       ; @base
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to map base address"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"zte,zx296702-pcu"

	.comm	_pcu_base,4,2                   ; @pcu_base
l_.str.2:                               ; @.str.2
	.asciz	"failed to map pcu_base address"

	.comm	_zx_restart_nb,4,2              ; @zx_restart_nb
l_.str.3:                               ; @.str.3
	.asciz	"Register restart handler failed(err=%d)\n"

	.no_dead_strip	_zx_reboot_probe
.subsections_via_symbols
