	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_imon_clock
_store_imon_clock:                      ## @store_imon_clock
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	cmpl	$0, 16(%r14)
	je	LBB0_3
## %bb.5:
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_18
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	subq	$8, %rsp
	leaq	-28(%rbp), %rax
	leaq	-32(%rbp), %r10
	leaq	-36(%rbp), %r11
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	leaq	-40(%rbp), %r9
	movq	%r15, %rdi
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_sscanf
	addq	$32, %rsp
	cmpl	$7, %eax
	jne	LBB0_8
## %bb.9:
	movl	-48(%rbp), %edx
	leal	-13(%rdx), %eax
	cmpl	$-12, %eax
	jb	LBB0_8
## %bb.10:
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.11:
	cmpl	$31, %ecx
	ja	LBB0_8
## %bb.12:
	movl	-40(%rbp), %r8d
	cmpl	$6, %r8d
	ja	LBB0_8
## %bb.13:
	movl	-36(%rbp), %r9d
	cmpl	$23, %r9d
	ja	LBB0_8
## %bb.14:
	movl	-32(%rbp), %r10d
	cmpl	$59, %r10d
	ja	LBB0_8
## %bb.15:
	movl	-28(%rbp), %eax
	cmpl	$60, %eax
	jae	LBB0_8
## %bb.16:
	movl	-52(%rbp), %esi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	pushq	%rax
	pushq	%r10
	callq	_send_set_imon_clock
	addq	$16, %rsp
	testq	%rax, %rax
	cmovneq	%rax, %rbx
	jmp	LBB0_17
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_17:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_18:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_EBUSY,8,3                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u %u %u %u %u %u %u"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_store_imon_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_imon_clock
_store_imon_clock:                      ; @store_imon_clock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_mutex_lock
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x20, x8
	b	LBB0_18
LBB0_5:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_16
LBB0_6:
	add	x8, sp, #20
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #36
	add	x3, sp, #40
	add	x4, sp, #36
	add	x5, sp, #32
	add	x6, sp, #28
	add	x7, sp, #24
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #7
	b.ne	LBB0_15
; %bb.7:
	ldr	w2, [sp, #40]
	sub	w8, w2, #13
	cmn	w8, #12
	b.lo	LBB0_15
; %bb.8:
	ldr	w3, [sp, #36]
	cbz	w3, LBB0_15
; %bb.9:
	cmp	w3, #31
	b.hi	LBB0_15
; %bb.10:
	ldr	w4, [sp, #32]
	cmp	w4, #6
	b.hi	LBB0_15
; %bb.11:
	ldr	w5, [sp, #28]
	cmp	w5, #23
	b.hi	LBB0_15
; %bb.12:
	ldr	w6, [sp, #24]
	cmp	w6, #59
	b.hi	LBB0_15
; %bb.13:
	ldr	w7, [sp, #20]
	cmp	w7, #60
	b.hs	LBB0_15
; %bb.14:
	ldur	w1, [x29, #-36]
	mov	x0, x19
	bl	_send_set_imon_clock
	cmp	x0, #0
	csel	x20, x20, x0, eq
	b	LBB0_17
LBB0_15:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	x8, [x8]
	neg	x20, x8
LBB0_17:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_EBUSY,8,3                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u %u %u %u %u %u %u"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_store_imon_clock
.subsections_via_symbols
