	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wakeup_data_store
_wakeup_data_store:                     ## @wakeup_data_store
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_to_rc_dev
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_WAKEUP_MAX_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_argv_split
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	-56(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.3:
	cmpl	(%r13), %edx
	jg	LBB0_9
## %bb.4:
	testl	%edx, %edx
	jle	LBB0_13
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	-56(%rbp), %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	movl	$10, %esi
	movq	%r13, %rdx
	callq	_kstrtouint
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-52(%rbp), %edi
	movq	_SAMPLE_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIV_ROUND_CLOSEST
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, -52(%rbp)
	leal	-128(%rax), %ecx
	cmpl	$-128, %ecx
	jbe	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, (%r15,%rbx,4)
	testb	$1, %bl
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_BUF_PULSE_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15,%rbx,4)
	jmp	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_15
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nvt_write_wakeup_codes
	jmp	LBB0_14
LBB0_7:
	movq	%rax, %r14
LBB0_14:
	movq	%r12, %rdi
	callq	_argv_free
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rax
	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	_WAKEUP_MAX_SIZE,4,2            ## @WAKEUP_MAX_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_SAMPLE_PERIOD,4,2              ## @SAMPLE_PERIOD
	.comm	_BUF_PULSE_BIT,4,2              ## @BUF_PULSE_BIT
	.no_dead_strip	_wakeup_data_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wakeup_data_store
_wakeup_data_store:                     ; @wakeup_data_store
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_to_rc_dev
	mov	x21, x0
Lloh3:
	adrp	x23, _WAKEUP_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _WAKEUP_MAX_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	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, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	sub	x2, x29, #76
	mov	x1, x20
	bl	_argv_split
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldur	w2, [x29, #-76]
	cbz	w2, LBB0_10
; %bb.2:
	ldr	w8, [x23]
	cmp	w2, w8
	b.gt	LBB0_10
; %bb.3:
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x23, #0
Lloh10:
	adrp	x24, _SAMPLE_PERIOD@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SAMPLE_PERIOD@GOTPAGEOFF]
Lloh12:
	adrp	x25, _BUF_PULSE_BIT@GOTPAGE
Lloh13:
	ldr	x25, [x25, _BUF_PULSE_BIT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldursw	x2, [x29, #-76]
	cmp	x23, x2
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, x23, lsl #3]
	sub	x2, x29, #80
	mov	w1, #10
	bl	_kstrtouint
	cbnz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	w0, [x29, #-80]
	ldr	w1, [x24]
	bl	_DIV_ROUND_CLOSEST
	stur	w0, [x29, #-80]
	sub	w8, w0, #128
	cmn	w8, #128
	b.ls	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w0, [x22, x23, lsl #2]
	tbnz	w23, #0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	orr	w8, w8, w0
	str	w8, [x22, x23, lsl #2]
	b	LBB0_5
LBB0_10:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_14
LBB0_11:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_15
LBB0_12:
	mov	x0, x21
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_nvt_write_wakeup_codes
	b	LBB0_14
LBB0_13:
	mov	x19, x0
LBB0_14:
	mov	x0, x20
	bl	_argv_free
LBB0_15:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKEUP_MAX_SIZE,4,2            ; @WAKEUP_MAX_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_SAMPLE_PERIOD,4,2              ; @SAMPLE_PERIOD
	.comm	_BUF_PULSE_BIT,4,2              ; @BUF_PULSE_BIT
	.no_dead_strip	_wakeup_data_store
.subsections_via_symbols
