	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function watchdog_start
_watchdog_start:                        ## @watchdog_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_watchdog_get_drvdata
	movq	%rax, %r14
	movl	8(%rax), %edi
	callq	_mutex_lock
	movq	16(%r14), %rdi
	movq	_SCH56XX_REG_WDOG_PRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	callq	_sch56xx_write_virtual_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_SCH56XX_WDOG_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	orl	4(%r14), %r15d
	movq	16(%r14), %rdi
	movq	_SCH56XX_REG_WDOG_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_sch56xx_write_virtual_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	%r15d, 4(%r14)
	movq	16(%r14), %rdi
	addq	$9, %rdi
	callq	_inb
	xorl	%ebx, %ebx
	testb	$1, %al
	je	LBB0_4
## %bb.3:
	movq	16(%r14), %rsi
	addq	$9, %rsi
	movl	$1, %edi
	callq	_outb
LBB0_4:
	movl	8(%r14), %edi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCH56XX_REG_WDOG_PRESET,4,2    ## @SCH56XX_REG_WDOG_PRESET
	.comm	_SCH56XX_WDOG_OUTPUT_ENABLE,4,2 ## @SCH56XX_WDOG_OUTPUT_ENABLE
	.comm	_SCH56XX_REG_WDOG_OUTPUT_ENABLE,4,2 ## @SCH56XX_REG_WDOG_OUTPUT_ENABLE
	.no_dead_strip	_watchdog_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function watchdog_start
_watchdog_start:                        ; @watchdog_start
	.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
	bl	_watchdog_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_mutex_lock
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _SCH56XX_REG_WDOG_PRESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCH56XX_REG_WDOG_PRESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19]
	bl	_sch56xx_write_virtual_reg
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _SCH56XX_WDOG_OUTPUT_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCH56XX_WDOG_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x8, _SCH56XX_REG_WDOG_OUTPUT_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCH56XX_REG_WDOG_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_sch56xx_write_virtual_reg
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.2:
	str	w21, [x19, #4]
	ldr	x8, [x19, #16]
	add	x0, x8, #9
	bl	_inb
	tbz	w0, #0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	add	x1, x8, #9
	mov	w0, #1
	bl	_outb
LBB0_4:
	mov	w20, #0
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_mutex_unlock
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SCH56XX_REG_WDOG_PRESET,4,2    ; @SCH56XX_REG_WDOG_PRESET
	.comm	_SCH56XX_WDOG_OUTPUT_ENABLE,4,2 ; @SCH56XX_WDOG_OUTPUT_ENABLE
	.comm	_SCH56XX_REG_WDOG_OUTPUT_ENABLE,4,2 ; @SCH56XX_REG_WDOG_OUTPUT_ENABLE
	.no_dead_strip	_watchdog_start
.subsections_via_symbols
