	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_raw_gen_pl                  ## -- Begin function ir_raw_gen_pl
	.p2align	4, 0x90
_ir_raw_gen_pl:                         ## @ir_raw_gen_pl
	.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	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	je	LBB0_19
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r13
	leal	-1(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rdi
	leaq	4(%rdi), %rax
	movq	%rax, (%r13)
	movq	%rdx, %r12
	movl	(%rdx), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_init_ir_raw_event_duration
	cmpq	$0, 24(%r12)
	je	LBB0_9
## %bb.2:
	movl	%r15d, %r14d
	decl	%r14d
	js	LBB0_7
## %bb.3:
	addl	%r15d, %r15d
	subl	%r15d, -48(%rbp)                ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %ebx
	je	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rdi
	leaq	4(%rdi), %rax
	movq	%rax, (%r13)
	movl	4(%r12), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_init_ir_raw_event_duration
	addl	$-2, %ebx
	je	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%r14), %r15d
	movq	8(%r12), %rax
	xorl	%ecx, %ecx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	btl	%r14d, %edx
	setb	%cl
	movl	(%rax,%rcx,4), %edx
	movq	(%r13), %rdi
	leaq	4(%rdi), %rax
	movq	%rax, (%r13)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_init_ir_raw_event_duration
	movl	%r15d, %r14d
	testl	%r15d, %r15d
	jns	LBB0_4
LBB0_7:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_20
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.10:
	leal	(%r15,%r15), %eax
	subl	%eax, -48(%rbp)                 ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %ebx
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r13), %rdi
	leaq	4(%rdi), %rax
	movq	%rax, (%r13)
	movl	4(%r12), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_init_ir_raw_event_duration
	addl	$-2, %ebx
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	decl	%r15d
	movq	8(%r12), %rax
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	andl	$1, %ecx
	movl	(%rax,%rcx,4), %edx
	movq	(%r13), %rdi
	leaq	4(%rdi), %rax
	movq	%rax, (%r13)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_init_ir_raw_event_duration
	sarl	%r14d
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	jne	LBB0_11
LBB0_14:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_20
LBB0_15:
	movq	(%r13), %rdi
	leaq	4(%rdi), %rax
	movq	%rax, (%r13)
	movl	16(%r12), %edx
	xorl	%ebx, %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_init_ir_raw_event_duration
	jmp	LBB0_20
LBB0_19:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_raw_gen_pl                  ; -- Begin function ir_raw_gen_pl
	.p2align	2
_ir_raw_gen_pl:                         ; @ir_raw_gen_pl
	.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
Lloh0:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	cbz	w1, LBB0_14
; %bb.1:
	mov	x22, x4
	mov	x24, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	sub	w25, w1, #1
	ldr	x0, [x0]
	add	x8, x0, #4
	str	x8, [x21]
	ldr	w2, [x2]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #1
	bl	_init_ir_raw_event_duration
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_7
; %bb.2:
	subs	w26, w24, #1
	b.mi	LBB0_12
; %bb.3:
	sub	w25, w25, w24, lsl #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w23, #1
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21]
	add	x8, x0, #4
	str	x8, [x21]
	ldr	w2, [x20, #4]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #0
	bl	_init_ir_raw_event_duration
	sub	w23, w23, #2
	cbz	w23, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w24, w26, #1
	ldr	x8, [x20, #8]
	lsr	w9, w22, w26
	and	w9, w9, #0x1
	ldr	w2, [x8, w9, uxtw #2]
	ldr	x0, [x21]
	add	x8, x0, #4
	str	x8, [x21]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #1
	bl	_init_ir_raw_event_duration
	mov	x26, x24
	tbz	w24, #31, LBB0_4
	b	LBB0_12
LBB0_7:
	cbz	w24, LBB0_12
; %bb.8:
	sub	w25, w25, w24, lsl #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w23, #1
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x21]
	add	x8, x0, #4
	str	x8, [x21]
	ldr	w2, [x20, #4]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #0
	bl	_init_ir_raw_event_duration
	subs	w23, w23, #2
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w24, w24, #1
	ldr	x8, [x20, #8]
	and	w9, w22, #0x1
	ldr	w2, [x8, w9, uxtw #2]
	ldr	x0, [x21]
	add	x8, x0, #4
	str	x8, [x21]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #1
	bl	_init_ir_raw_event_duration
	asr	w22, w22, #1
	cbnz	w24, LBB0_9
LBB0_12:
	cbz	w25, LBB0_14
; %bb.13:
	ldr	x0, [x21]
	add	x8, x0, #4
	str	x8, [x21]
	ldr	w2, [x20, #16]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #0
	bl	_init_ir_raw_event_duration
	mov	w19, #0
LBB0_14:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
.subsections_via_symbols
