	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function harddog_open
_harddog_open:                          ## @harddog_open
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_timer_alive@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	_harddog_in_fd@GOTPCREL(%rip), %rdi
	movq	_harddog_out_fd@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	callq	_start_watchdog
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_unlock_kernel
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, (%r12)
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_unlock_kernel
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nonseekable_open               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_lock,4,2                       ## @lock
	.comm	_timer_alive,4,2                ## @timer_alive
	.comm	_harddog_in_fd,4,2              ## @harddog_in_fd
	.comm	_harddog_out_fd,4,2             ## @harddog_out_fd
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_harddog_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function harddog_open
_harddog_open:                          ; @harddog_open
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_lock_kernel
Lloh3:
	adrp	x0, _lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh5:
	adrp	x22, _timer_alive@GOTPAGE
Lloh6:
	ldr	x22, [x22, _timer_alive@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_2
; %bb.1:
	neg	w21, w21
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x0, _harddog_in_fd@GOTPAGE
Lloh8:
	ldr	x0, [x0, _harddog_in_fd@GOTPAGEOFF]
Lloh9:
	adrp	x1, _harddog_out_fd@GOTPAGE
Lloh10:
	ldr	x1, [x1, _harddog_out_fd@GOTPAGEOFF]
	mov	x2, #0
	bl	_start_watchdog
	mov	x21, x0
	cbz	w0, LBB0_4
LBB0_3:
Lloh11:
	adrp	x0, _lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_spin_unlock
	bl	_unlock_kernel
	mov	x0, x21
	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
LBB0_4:
	mov	w8, #1
	str	w8, [x22]
Lloh13:
	adrp	x0, _lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_spin_unlock
	bl	_unlock_kernel
	mov	x0, x20
	mov	x1, x19
	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	_nonseekable_open
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_lock,4,2                       ; @lock
	.comm	_timer_alive,4,2                ; @timer_alive
	.comm	_harddog_in_fd,4,2              ; @harddog_in_fd
	.comm	_harddog_out_fd,4,2             ; @harddog_out_fd
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_harddog_open
.subsections_via_symbols
