	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_set_imon_clock
_send_set_imon_clock:                   ## @send_set_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IMON_CLOCK_ENABLE_PACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	(,%r12,8), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movl	24(%rbp), %eax
	movl	16(%rbp), %ecx
	movl	(%r14), %edx
	cmpl	$128, %edx
	je	LBB0_6
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.4:
	movb	$-128, (%r13)
	movb	%r15b, 1(%r13)
	decb	%bl
	movb	%bl, 2(%r13)
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movb	%dl, 3(%r13)
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movb	%dl, 4(%r13)
	movb	%cl, 5(%r13)
	movb	%al, 6(%r13)
	movb	$-128, 8(%r13)
	movl	$0, 9(%r13)
	movw	$0, 13(%r13)
	cmpl	$65500, 4(%r14)                 ## imm = 0xFFDC
	jne	LBB0_8
## %bb.5:
	movb	$80, 7(%r13)
	movb	$81, 15(%r13)
	testl	%r12d, %r12d
	jg	LBB0_10
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_6:
	movb	%r15b, (%r13)
	decb	%bl
	movb	%bl, 1(%r13)
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movb	%dl, 2(%r13)
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movb	%dl, 3(%r13)
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movb	%dl, 4(%r13)
	movb	%cl, 5(%r13)
	movb	%al, 6(%r13)
	movq	$16777280, 7(%r13)              ## imm = 0x1000040
	movb	$66, 15(%r13)
	testl	%r12d, %r12d
	jg	LBB0_10
	jmp	LBB0_14
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_8:
	movb	$-120, 7(%r13)
	movb	$-118, 15(%r13)
	testl	%r12d, %r12d
	jle	LBB0_14
LBB0_10:
	xorl	%ebx, %ebx
	movq	_IMON_CLOCK_ENABLE_PACKETS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_send_packet
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IMON_CLOCK_ENABLE_PACKETS,4,2  ## @IMON_CLOCK_ENABLE_PACKETS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no context for device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"send_packet failed for packet %d\n"

	.no_dead_strip	_send_set_imon_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_set_imon_clock
_send_set_imon_clock:                   ; @send_set_imon_clock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _IMON_CLOCK_ENABLE_PACKETS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IMON_CLOCK_ENABLE_PACKETS@GOTPAGEOFF]
	ldr	w12, [x22]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
	mov	w8, #128
	strb	w8, [x20]
	strb	w1, [x20, #1]
	sub	w9, w2, #1
	strb	w9, [x20, #2]
	strb	w3, [x20, #3]
	strb	w5, [x20, #4]
	strb	w6, [x20, #5]
	strb	w7, [x20, #6]
	strb	w8, [x20, #8]
	stur	wzr, [x20, #9]
	sturh	wzr, [x20, #13]
	mov	w8, #65500
	ldr	w9, [x19, #4]
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.4:
	mov	w8, #80
	strb	w8, [x20, #7]
	mov	w8, #81
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_6:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_7:
	strb	w1, [x20]
	sub	w8, w2, #1
	strb	w8, [x20, #1]
	strb	w3, [x20, #2]
	strb	w4, [x20, #3]
	strb	w5, [x20, #4]
	strb	w6, [x20, #5]
	strb	w7, [x20, #6]
	mov	w8, #64
	movk	w8, #256, lsl #16
	stur	x8, [x20, #7]
	mov	w8, #66
	b	LBB0_9
LBB0_8:
	mov	w8, #136
	strb	w8, [x20, #7]
	mov	w8, #138
LBB0_9:
	strb	w8, [x20, #15]
	cmp	w12, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #8
	bl	_memcpy
	mov	x0, x19
	bl	_send_packet
	cbnz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x20, x20, #8
	cmp	x23, x8
	b.lt	LBB0_11
LBB0_13:
	mov	w21, #0
	b	LBB0_15
LBB0_14:
	mov	x21, x0
	str	x23, [sp, #-16]!
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	add	sp, sp, #16
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IMON_CLOCK_ENABLE_PACKETS,4,2  ; @IMON_CLOCK_ENABLE_PACKETS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no context for device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"send_packet failed for packet %d\n"

	.no_dead_strip	_send_set_imon_clock
.subsections_via_symbols
