	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_watchdog
_imx_watchdog:                          ## @imx_watchdog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.4:
	movq	_WD_INTERVAL@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movl	$1, %eax
	movl	%esi, %ecx
	shlq	%cl, %rax
	shrq	$9, %rax
	movabsq	$19342813113834067, %rcx        ## imm = 0x44B82FA09B5A53
	mulq	%rcx
	shrq	$11, %rdx
	movq	%rdx, %rsi
	callq	_imx_wdog_enable
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movl	%eax, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can not be disabled.\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WD_INTERVAL,8,3                ## @WD_INTERVAL
	.no_dead_strip	_imx_watchdog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_watchdog
_imx_watchdog:                          ; @imx_watchdog
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	cbz	x1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _WD_INTERVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WD_INTERVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x8, x8, x1
	mov	w9, #1
	lsl	x8, x9, x8
	lsr	x8, x8, #9
	mov	x9, #23123
	movk	x9, #41115, lsl #16
	movk	x9, #47151, lsl #32
	movk	x9, #68, lsl #48
	umulh	x8, x8, x9
	lsr	x1, x8, #11
	bl	_imx_wdog_enable
	cbnz	x0, LBB0_7
; %bb.2:
	mov	w8, #0
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _bootverbose@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x0]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
LBB0_5:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
LBB0_6:
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can not be disabled.\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WD_INTERVAL,8,3                ; @WD_INTERVAL
	.no_dead_strip	_imx_watchdog
.subsections_via_symbols
