	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmstb_reboot_probe
_brcmstb_reboot_probe:                  ## @brcmstb_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	(%rax), %eax
	movq	_reset_masks@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	_regmap@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_3
LBB0_6:
	movq	_RESET_SOURCE_ENABLE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	_rst_src_en@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_8
LBB0_9:
	movq	_SW_MASTER_RESET_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	_sw_mstr_rst@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
LBB0_8:
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	_brcmstb_restart_nb@GOTPCREL(%rip), %rdi
	callq	_register_restart_handler
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_of_match,4,2                   ## @of_match
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to look up compatible string\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_reset_masks,4,2                ## @reset_masks
L_.str.1:                               ## @.str.1
	.asciz	"syscon"

	.comm	_regmap,4,2                     ## @regmap
L_.str.2:                               ## @.str.2
	.asciz	"failed to get syscon phandle\n"

	.comm	_RESET_SOURCE_ENABLE_REG,4,2    ## @RESET_SOURCE_ENABLE_REG
	.comm	_rst_src_en,4,2                 ## @rst_src_en
L_.str.3:                               ## @.str.3
	.asciz	"can't get rst_src_en offset (%d)\n"

	.comm	_SW_MASTER_RESET_REG,4,2        ## @SW_MASTER_RESET_REG
	.comm	_sw_mstr_rst,4,2                ## @sw_mstr_rst
L_.str.4:                               ## @.str.4
	.asciz	"can't get sw_mstr_rst offset (%d)\n"

	.comm	_brcmstb_restart_nb,4,2         ## @brcmstb_restart_nb
L_.str.5:                               ## @.str.5
	.asciz	"cannot register restart handler (err=%d)\n"

	.no_dead_strip	_brcmstb_reboot_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmstb_reboot_probe
_brcmstb_reboot_probe:                  ; @brcmstb_reboot_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_of_match_node
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _reset_masks@GOTPAGE
Lloh4:
	ldr	x9, [x9, _reset_masks@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_syscon_regmap_lookup_by_phandle
Lloh8:
	adrp	x8, _regmap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _regmap@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x8, _RESET_SOURCE_ENABLE_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RESET_SOURCE_ENABLE_REG@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh20:
	adrp	x3, _rst_src_en@GOTPAGE
Lloh21:
	ldr	x3, [x3, _rst_src_en@GOTPAGEOFF]
	mov	x0, x20
	bl	_of_property_read_u32_index
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.5:
	str	x0, [sp]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh24:
	adrp	x8, _SW_MASTER_RESET_REG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SW_MASTER_RESET_REG@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh29:
	adrp	x3, _sw_mstr_rst@GOTPAGE
Lloh30:
	ldr	x3, [x3, _sw_mstr_rst@GOTPAGEOFF]
	mov	x0, x20
	bl	_of_property_read_u32_index
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_10
; %bb.7:
	str	x0, [sp]
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_8:
	bl	_pr_err
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
Lloh36:
	adrp	x0, _brcmstb_restart_nb@GOTPAGE
Lloh37:
	ldr	x0, [x0, _brcmstb_restart_nb@GOTPAGEOFF]
	bl	_register_restart_handler
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.11:
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_of_match,4,2                   ; @of_match
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to look up compatible string\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_reset_masks,4,2                ; @reset_masks
l_.str.1:                               ; @.str.1
	.asciz	"syscon"

	.comm	_regmap,4,2                     ; @regmap
l_.str.2:                               ; @.str.2
	.asciz	"failed to get syscon phandle\n"

	.comm	_RESET_SOURCE_ENABLE_REG,4,2    ; @RESET_SOURCE_ENABLE_REG
	.comm	_rst_src_en,4,2                 ; @rst_src_en
l_.str.3:                               ; @.str.3
	.asciz	"can't get rst_src_en offset (%d)\n"

	.comm	_SW_MASTER_RESET_REG,4,2        ; @SW_MASTER_RESET_REG
	.comm	_sw_mstr_rst,4,2                ; @sw_mstr_rst
l_.str.4:                               ; @.str.4
	.asciz	"can't get sw_mstr_rst offset (%d)\n"

	.comm	_brcmstb_restart_nb,4,2         ; @brcmstb_restart_nb
l_.str.5:                               ; @.str.5
	.asciz	"cannot register restart handler (err=%d)\n"

	.no_dead_strip	_brcmstb_reboot_probe
.subsections_via_symbols
