	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmwd_watchdog_reset           ## -- Begin function bcmwd_watchdog_reset
	.p2align	4, 0x90
_bcmwd_watchdog_reset:                  ## @bcmwd_watchdog_reset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_bcmwd_lsc@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_BCM2835_WDOG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCM2835_PASSWORD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_BCM2835_PASSWORD_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	shll	%cl, %edx
	orl	$10, %edx
	callq	_WRITE
	movq	(%rbx), %r14
	movq	_BCM2835_RSTC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_READ
	movq	_BCM2835_RSTC_WRCFG_CLR@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	(%r15), %edx
	movb	(%r12), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movq	_BCM2835_RSTC_WRCFG_FULL_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WRITE                          ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bcmwd_lsc,8,3                  ## @bcmwd_lsc
	.comm	_BCM2835_WDOG_REG,4,2           ## @BCM2835_WDOG_REG
	.comm	_BCM2835_PASSWORD,4,2           ## @BCM2835_PASSWORD
	.comm	_BCM2835_PASSWORD_SHIFT,4,2     ## @BCM2835_PASSWORD_SHIFT
	.comm	_BCM2835_RSTC_REG,4,2           ## @BCM2835_RSTC_REG
	.comm	_BCM2835_RSTC_WRCFG_CLR,4,2     ## @BCM2835_RSTC_WRCFG_CLR
	.comm	_BCM2835_RSTC_WRCFG_FULL_RESET,4,2 ## @BCM2835_RSTC_WRCFG_FULL_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmwd_watchdog_reset           ; -- Begin function bcmwd_watchdog_reset
	.p2align	2
_bcmwd_watchdog_reset:                  ; @bcmwd_watchdog_reset
	.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
Lloh0:
	adrp	x19, _bcmwd_lsc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _bcmwd_lsc@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _BCM2835_WDOG_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCM2835_WDOG_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x21, _BCM2835_PASSWORD@GOTPAGE
Lloh6:
	ldr	x21, [x21, _BCM2835_PASSWORD@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh7:
	adrp	x22, _BCM2835_PASSWORD_SHIFT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _BCM2835_PASSWORD_SHIFT@GOTPAGEOFF]
	ldr	w9, [x22]
	lsl	w8, w8, w9
	mov	w9, #10
	orr	w2, w8, w9
	bl	_WRITE
	ldr	x19, [x19]
Lloh9:
	adrp	x8, _BCM2835_RSTC_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BCM2835_RSTC_REG@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_READ
Lloh12:
	adrp	x8, _BCM2835_RSTC_WRCFG_CLR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BCM2835_RSTC_WRCFG_CLR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [x21]
	ldr	w10, [x22]
	lsl	w9, w9, w10
Lloh15:
	adrp	x10, _BCM2835_RSTC_WRCFG_FULL_RESET@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BCM2835_RSTC_WRCFG_FULL_RESET@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh17:
	ldr	w9, [x10]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, 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
	b	_WRITE
LBB0_2:
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_bcmwd_lsc,8,3                  ; @bcmwd_lsc
	.comm	_BCM2835_WDOG_REG,4,2           ; @BCM2835_WDOG_REG
	.comm	_BCM2835_PASSWORD,4,2           ; @BCM2835_PASSWORD
	.comm	_BCM2835_PASSWORD_SHIFT,4,2     ; @BCM2835_PASSWORD_SHIFT
	.comm	_BCM2835_RSTC_REG,4,2           ; @BCM2835_RSTC_REG
	.comm	_BCM2835_RSTC_WRCFG_CLR,4,2     ; @BCM2835_RSTC_WRCFG_CLR
	.comm	_BCM2835_RSTC_WRCFG_FULL_RESET,4,2 ; @BCM2835_RSTC_WRCFG_FULL_RESET
.subsections_via_symbols
