	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_raw_gen_manchester          ## -- Begin function ir_raw_gen_manchester
	.p2align	4, 0x90
_ir_raw_gen_manchester:                 ## @ir_raw_gen_manchester
	.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, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	-1(%r13), %edi
	callq	_BIT_ULL
	movl	%eax, %r14d
	movq	32(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r13d
	subl	$1, %r13d
	jb	LBB0_2
## %bb.4:
	movq	(%r15), %rdi
	movl	$1, %esi
	callq	_init_ir_raw_event_duration
	movq	24(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.6:
	addl	$-2, %ebx
	movq	(%r15), %rdi
	addq	$8, %rdi
	movq	%rdi, (%r15)
	xorl	%esi, %esi
	callq	_init_ir_raw_event_duration
	jmp	LBB0_8
LBB0_2:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_24
LBB0_3:
	addq	$-8, (%r15)
	testl	%r13d, %r13d
	jne	LBB0_9
	jmp	LBB0_16
LBB0_7:
	movl	%r13d, %ebx
LBB0_8:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	testl	%r13d, %r13d
	je	LBB0_16
LBB0_9:
	testl	%r14d, %r14d
	jg	LBB0_10
LBB0_16:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.17:
	movq	(%r15), %rdi
	cmpl	$0, 4(%rdi)
	je	LBB0_21
## %bb.18:
	testl	%ebx, %ebx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_23
## %bb.19:
	addq	$8, %rdi
	movq	%rdi, (%r15)
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_init_ir_raw_event_duration
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	8(%r12), %eax
	addl	%eax, (%rdi)
	testl	%ebx, %ebx
	je	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	decl	%ebx
	movq	(%r15), %rdi
	addq	$8, %rdi
	movq	%rdi, (%r15)
	xorb	$1, %r13b
	movzbl	%r13b, %esi
	movq	8(%r12), %rdx
	callq	_init_ir_raw_event_duration
	movl	%r14d, %eax
	shrl	%eax
	cmpl	$1, %r14d
	movl	%eax, %r14d
	jbe	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testl	%r14d, -48(%rbp)                ## 4-byte Folded Reload
	setne	%al
	cmpq	$0, 16(%r12)
	sete	%r13b
	xorb	%al, %r13b
	movq	(%r15), %rdi
	cmpl	$0, 4(%rdi)
	sete	%al
	cmpb	%al, %r13b
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	%r13b, %esi
	decl	%ebx
	addq	$8, %rdi
	movq	%rdi, (%r15)
	movq	8(%r12), %rdx
	callq	_init_ir_raw_event_duration
	testl	%ebx, %ebx
	jne	LBB0_15
LBB0_12:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_23
LBB0_21:
	addl	%edx, (%rdi)
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	addq	$8, (%r15)
LBB0_24:
	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_manchester          ; -- Begin function ir_raw_gen_manchester
	.p2align	2
_ir_raw_gen_manchester:                 ; @ir_raw_gen_manchester
	.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
	mov	x23, x4
	mov	x25, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	sub	w0, w3, #1
Lloh0:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	bl	_BIT_ULL
	mov	x24, x0
	ldr	x2, [x22, #32]
	cbz	x2, LBB0_5
; %bb.1:
	cbz	w21, LBB0_20
; %bb.2:
	sub	w26, w21, #1
	ldr	x0, [x19]
	mov	w1, #1
	bl	_init_ir_raw_event_duration
	ldr	x2, [x22, #24]
	cbz	x2, LBB0_6
; %bb.3:
	cbz	w26, LBB0_20
; %bb.4:
	sub	w21, w21, #2
	ldr	x8, [x19]
	add	x0, x8, #8
	str	x0, [x19]
	mov	w1, #0
	bl	_init_ir_raw_event_duration
	cbnz	w25, LBB0_7
	b	LBB0_13
LBB0_5:
	ldr	x8, [x19]
	sub	x8, x8, #8
	str	x8, [x19]
	cbnz	w25, LBB0_7
	b	LBB0_13
LBB0_6:
	mov	x21, x26
	cbz	w25, LBB0_13
LBB0_7:
	cmp	w24, #1
	b.lt	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	tst	w24, w23
	cset	w8, ne
	ldr	x9, [x22, #16]
	cmp	x9, #0
	cset	w9, eq
	eor	w25, w8, w9
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	cmp	w9, #0
	cset	w9, eq
	cmp	w25, w9
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x22, #8]
	ldr	w10, [x8]
	add	w9, w10, w9
	str	w9, [x8]
	cbnz	w21, LBB0_12
	b	LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w21, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	w21, w21, #1
	add	x0, x8, #8
	str	x0, [x19]
	ldr	x2, [x22, #8]
	mov	x1, x25
	bl	_init_ir_raw_event_duration
	cbz	w21, LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w21, w21, #1
	ldr	x8, [x19]
	add	x0, x8, #8
	str	x0, [x19]
	eor	w1, w25, #0x1
	ldr	x2, [x22, #8]
	bl	_init_ir_raw_event_duration
	lsr	w8, w24, #1
	cmp	w24, #1
	mov	x24, x8
	b.hi	LBB0_8
LBB0_13:
	ldr	x2, [x22]
	cbz	x2, LBB0_17
; %bb.14:
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_18
; %bb.15:
	cbz	w21, LBB0_19
; %bb.16:
	add	x0, x8, #8
	str	x0, [x19]
	mov	w1, #0
	bl	_init_ir_raw_event_duration
LBB0_17:
	mov	w20, #0
	b	LBB0_19
LBB0_18:
	mov	w20, #0
	ldr	w9, [x8]
	add	w9, w9, w2
	str	w9, [x8]
LBB0_19:
	ldr	x8, [x19]
	add	x8, x8, #8
	str	x8, [x19]
LBB0_20:
	mov	x0, x20
	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
