	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zilog_ir_format
_zilog_ir_format:                       ## @zilog_ir_format
	.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	$792, %rsp                      ## imm = 0x318
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -760(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	_XTAL_FREQ@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	imull	(%rbx), %eax
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, -768(%rbp)                ## 8-byte Spill
	cltq
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	sarl	$6, %edi
	addl	%eax, %edi
	movl	4(%rbx), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_DIV_ROUND_CLOSEST
	movq	%rax, 32(%r12)
	movl	$100, %eax
	subl	(%rbx), %eax
	imull	(%r15), %eax
	cltq
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	sarl	$6, %edi
	addl	%eax, %edi
	movl	4(%rbx), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_DIV_ROUND_CLOSEST
	movq	%rax, 24(%r12)
	movl	$0, %ebx
	movl	$0, %r13d
	testl	%r14d, %r14d
	movq	%r12, -800(%rbp)                ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	movl	%r14d, %eax
	movq	%rax, -792(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_find_slot
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r14, -792(%rbp)                ## 8-byte Folded Reload
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-752(%rbp), %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	cmpl	%eax, %r13d
	jge	LBB0_3
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-768(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	cmpl	$142221, %eax                   ## imm = 0x22B8D
	jae	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_XTAL_FREQ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$274877907, %rcx, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdi
	addl	%ecx, %edi
	imull	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$40000, %esi                    ## imm = 0x9C40
	callq	_DIV_ROUND_CLOSEST
	movq	%rax, %r15
	testb	$1, %r14b
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_find_slot
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %ecx
	shll	$4, %ecx
	orl	%ecx, %eax
	movslq	%r13d, %rcx
	incl	%r13d
	movl	%eax, -752(%rbp,%rcx,4)
	movq	-800(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_25
LBB0_5:
	movl	%ebx, -768(%rbp)                ## 4-byte Spill
	movq	%r13, -784(%rbp)                ## 8-byte Spill
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	movl	$0, %edx
	jl	LBB0_10
## %bb.6:
	xorl	%r13d, %r13d
	movl	$1, %ebx
	movl	$4, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	-800(%rbp), %r12                ## 8-byte Reload
	movq	(%r12), %rdi
	movl	%ecx, %r14d
	callq	_ARRAY_SIZE
	movl	%r14d, %edx
	cltq
	addq	$4, %r15
	movl	%r14d, %r13d
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_get_unaligned_be16
	movq	%rax, %r14
	movslq	%r13d, %rdi
	shlq	$2, %rdi
	addq	(%r12), %rdi
	callq	_get_unaligned_be16
	movl	%ebx, %ecx
	cmpq	%r14, %rax
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %ecx
	jmp	LBB0_9
LBB0_10:
	movl	-768(%rbp), %ecx                ## 4-byte Reload
	shll	$4, %ecx
	orl	%edx, %ecx
	movq	-784(%rbp), %rax                ## 8-byte Reload
	leal	1(%rax), %edx
	movslq	%eax, %rbx
	movl	%ecx, -752(%rbp,%rbx,4)
	leaq	L_.str.3(%rip), %rsi
	movq	-760(%rbp), %rdi                ## 8-byte Reload
	movl	%edx, -772(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$2, %ebx
	jl	LBB0_15
## %bb.11:
	movl	-772(%rbp), %eax                ## 4-byte Reload
	movl	$2863311531, %r13d              ## imm = 0xAAAAAAAB
	imulq	%rax, %r13
	shrq	$33, %r13
	leal	(%r13,%r13), %ecx
	leal	-2(%r13,%r13), %esi
	leal	-3(%r13,%r13), %edx
	subq	%r13, %rax
	leaq	-752(,%rax,4), %rbx
	addq	%rbp, %rbx
	movl	$1, %r14d
	movl	$1, %r12d
	subl	%ecx, %r12d
	leal	(%r13,%r13,2), %eax
	subl	%eax, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	leaq	-1(%r13), %rax
	movl	-792(%rbp), %esi                ## 4-byte Reload
	addl	$-2, %esi
	movl	-768(%rbp), %edx                ## 4-byte Reload
	addl	$-2, %edx
	addq	$4, %rbx
	addl	$2, %r12d
	addl	$3, %r14d
	cmpq	$1, %r13
	movq	%rax, %r13
	jle	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, -792(%rbp)                ## 4-byte Spill
	movl	%edx, -768(%rbp)                ## 4-byte Spill
	movq	-784(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r14), %ecx
	movl	%ecx, -804(%rbp)                ## 4-byte Spill
	movslq	%ecx, %rcx
	movq	%rcx, -816(%rbp)                ## 8-byte Spill
	leaq	-752(%rbp,%rcx,4), %rdi
	addl	%r12d, %eax
	cltq
	leaq	-752(%rbp,%rax,4), %r15
	movq	%rdi, -824(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_cmp_no_trail
	testl	%eax, %eax
	jne	LBB0_14
## %bb.26:
	movq	-800(%rbp), %r15                ## 8-byte Reload
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	subl	%r13d, %eax
	addl	$-3, %eax
	movl	-804(%rbp), %ebx                ## 4-byte Reload
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.27:
	leaq	L_.str.4(%rip), %rsi
	movq	-760(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	16(%r15), %rdi
	leaq	-752(%rbp), %rsi
	movl	%ebx, %edx
	callq	_copy_codes
	movq	16(%r15), %rax
	movq	-816(%rbp), %rcx                ## 8-byte Reload
	movl	$130, (%rax,%rcx,4)
	leaq	(%rax,%rcx,4), %rdi
	addq	$4, %rdi
	movq	-824(%rbp), %rsi                ## 8-byte Reload
	movl	%r13d, %edx
	callq	_copy_codes
	movq	-784(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %eax
	subl	-792(%rbp), %eax                ## 4-byte Folded Reload
	subl	-768(%rbp), %ebx                ## 4-byte Folded Reload
	movl	$192, %ecx
	jmp	LBB0_28
LBB0_15:
	movq	-800(%rbp), %r15                ## 8-byte Reload
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	addl	$-3, %eax
	movl	-772(%rbp), %ebx                ## 4-byte Reload
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	movq	-760(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	16(%r15), %rdi
	movl	$130, (%rdi)
	addq	$4, %rdi
	leaq	-752(%rbp), %rsi
	movl	%ebx, %edx
	callq	_copy_codes
	movq	-784(%rbp), %rbx                ## 8-byte Reload
	leal	2(%rbx), %eax
	addl	$3, %ebx
	movl	$196, %ecx
LBB0_28:
	movq	16(%r15), %rdi
	cltq
	movl	%ecx, (%rdi,%rax,4)
	callq	_ARRAY_SIZE
	xorl	%r14d, %r14d
	cmpl	%eax, %ebx
	jge	LBB0_31
## %bb.29:
	movslq	%ebx, %rbx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	movl	$131, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_30
	jmp	LBB0_31
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	-760(%rbp), %rdi                ## 8-byte Reload
	callq	_dev_warn
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.32:
	movl	%r14d, %eax
	addq	$792, %rsp                      ## imm = 0x318
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_21:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XTAL_FREQ,4,2                  ## @XTAL_FREQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR too long, cannot transmit\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Too many different lengths spaces, cannot transmit"

L_.str.2:                               ## @.str.2
	.asciz	"Too many different lengths pulses, cannot transmit"

L_.str.3:                               ## @.str.3
	.asciz	"generated %d codes\n"

L_.str.4:                               ## @.str.4
	.asciz	"found trailing %d repeat\n"

L_.str.5:                               ## @.str.5
	.asciz	"found no trailing repeat\n"

	.no_dead_strip	_zilog_ir_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zilog_ir_format
_zilog_ir_format:                       ; @zilog_ir_format
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #736
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x20, [x0, #8]
Lloh3:
	adrp	x25, _XTAL_FREQ@GOTPAGE
Lloh4:
	ldr	x25, [x25, _XTAL_FREQ@GOTPAGEOFF]
	ldr	w8, [x25]
	ldp	w9, w1, [x20]
	mul	w8, w8, w9
	mov	w21, #19923
	movk	w21, #4194, lsl #16
	smull	x8, w8, w21
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #6
	bl	_DIV_ROUND_CLOSEST
	str	x0, [x19, #32]
	mov	w8, #100
	ldp	w9, w1, [x20]
	sub	w8, w8, w9
	ldr	w9, [x25]
	mul	w8, w8, w9
	smull	x8, w8, w21
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #6
	bl	_DIV_ROUND_CLOSEST
	str	x0, [x19, #24]
	cbz	w23, LBB0_9
; %bb.1:
	mov	x27, #0
	mov	w26, #0
	mov	w21, #0
	mov	w20, #11149
	movk	w20, #2, lsl #16
	mov	w24, #19923
	movk	w24, #4194, lsl #16
	mov	w28, w23
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x19, #8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	bl	_find_slot
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_32
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	x28, x27
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	cmp	w26, w8
	b.ge	LBB0_27
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, x27, lsl #2]
	cmp	w8, w20
	b.hs	LBB0_29
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [x25]
	mul	x9, x9, x24
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	mul	w0, w9, w8
	mov	w1, #40000
	bl	_DIV_ROUND_CLOSEST
	mov	x23, x0
	tbz	w27, #0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x19]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	bl	_find_slot
	cmn	w0, #1
	b.eq	LBB0_33
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w8, w0, w21, lsl #4
	add	x9, sp, #24
	str	w8, [x9, w26, sxtw #2]
	add	w26, w26, #1
	mov	w24, #19923
	movk	w24, #4194, lsl #16
	b	LBB0_3
LBB0_9:
	mov	w21, #0
	mov	w26, #0
LBB0_10:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_13
; %bb.11:
	mov	w20, #0
	mov	w23, #1
	mov	w24, #4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x24
	bl	_get_unaligned_be16
	mov	x22, x0
	ldr	x8, [x19]
	add	x0, x8, w20, sxtw #2
	bl	_get_unaligned_be16
	cmp	x0, x22
	csel	w20, w23, w20, gt
	add	x23, x23, #1
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	add	x24, x24, #4
	cmp	x23, w0, sxtw
	b.lt	LBB0_12
	b	LBB0_14
LBB0_13:
	mov	w20, #0
LBB0_14:
	orr	w8, w20, w21, lsl #4
	add	w9, w26, #1
	add	x20, sp, #24
	str	w8, [x20, w26, sxtw #2]
	mov	x8, x9
	stp	x8, x9, [sp]                    ; 8-byte Folded Spill
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_dev_dbg
	cmp	w26, #2
	b.lt	LBB0_21
; %bb.15:
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	umull	x8, w9, w8
	lsr	x22, x8, #33
	lsl	w8, w22, #1
	neg	w27, w8
	sub	x9, x9, x22
	add	x24, x20, x9, lsl #2
	mov	w9, #1
	add	w8, w8, w22
	sub	w28, w9, w8
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w27, w27, #2
	add	x24, x24, #4
	add	w28, w28, #3
	subs	x22, x22, #1
	b.le	LBB0_21
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	w21, w26, w28
	add	x23, x20, w21, sxtw #2
	add	w8, w26, w27
	add	w8, w8, #1
	add	x25, x20, w8, sxtw #2
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	bl	_memcmp
	cbnz	w0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x24
	mov	x1, x25
	mov	x2, x22
	bl	_cmp_no_trail
	cbnz	w0, LBB0_16
; %bb.19:
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	sub	w8, w0, w22
	sub	w8, w8, #3
	add	w20, w26, w28
	cmp	w20, w8
	b.ge	LBB0_27
; %bb.20:
	sxtw	x21, w21
	str	x22, [sp]
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_dev_dbg
	ldr	x0, [x19, #16]
	add	x1, sp, #24
	mov	x2, x20
	bl	_copy_codes
	ldr	x8, [x19, #16]
	add	x0, x8, x21, lsl #2
	mov	w8, #130
	str	w8, [x0], #4
	mov	x1, x23
	mov	x2, x22
	bl	_copy_codes
	add	w9, w26, w27
	add	w8, w9, #2
	add	w20, w9, #3
	mov	w9, #192
	b	LBB0_23
LBB0_21:
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	sub	w8, w0, #3
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cmp	w20, w8
	b.ge	LBB0_27
; %bb.22:
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_dev_dbg
	ldr	x0, [x19, #16]
	mov	w8, #130
	str	w8, [x0], #4
	add	x1, sp, #24
	mov	x2, x20
	bl	_copy_codes
	add	w8, w26, #2
	add	w20, w26, #3
	mov	w9, #196
LBB0_23:
	ldr	x0, [x19, #16]
	str	w9, [x0, w8, sxtw #2]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.ge	LBB0_26
; %bb.24:
	sxtw	x8, w20
	mov	w20, #131
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	add	x21, x8, #1
	str	w20, [x0, x8, lsl #2]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	mov	x8, x21
	b.lt	LBB0_25
LBB0_26:
	mov	w0, #0
	b	LBB0_30
LBB0_27:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_28:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_dev_warn
LBB0_29:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_30:
	ldur	x8, [x29, #-96]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.31:
	add	sp, sp, #736
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_32:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_33:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_28
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_XTAL_FREQ,4,2                  ; @XTAL_FREQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR too long, cannot transmit\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Too many different lengths spaces, cannot transmit"

l_.str.2:                               ; @.str.2
	.asciz	"Too many different lengths pulses, cannot transmit"

l_.str.3:                               ; @.str.3
	.asciz	"generated %d codes\n"

l_.str.4:                               ; @.str.4
	.asciz	"found trailing %d repeat\n"

l_.str.5:                               ; @.str.5
	.asciz	"found no trailing repeat\n"

	.no_dead_strip	_zilog_ir_format
.subsections_via_symbols
