	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_pulse_irdeo
_send_pulse_irdeo:                      ## @send_pulse_irdeo
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	shll	$7, %edi
	leal	(%rdi,%rdi,8), %eax
	movq	_serial_ir@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	$51, (%rdx)
	setge	%dl
	cmpl	$10000, %eax                    ## imm = 0x2710
	jb	LBB0_10
## %bb.1:
	movb	%dl, %cl
	leal	(%rcx,%rcx), %r14d
	incl	%r14d
	movl	%eax, %eax
	movl	$3518437209, %r15d              ## imm = 0xD1B71759
	imulq	%rax, %r15
	shrq	$45, %r15
	xorl	%edx, %edx
	movb	$127, %al
	movq	_UART_TX@GOTPCREL(%rip), %r12
	movq	_UART_LSR@GOTPCREL(%rip), %r13
	movq	_UART_LSR_THRE@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-3(%r15), %rcx
	cmpq	$3, %r15
	movq	%rcx, %r15
	jle	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, %esi
	leal	(%rdx,%rdx,2), %ecx
	movl	%r14d, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	shrb	%al
	notb	%al
	andb	%sil, %al
	incl	%edx
	cmpl	$3, %edx
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movzbl	%al, %esi
	callq	_soutp
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	callq	_sinp
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$127, %al
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_7:
	testl	%edx, %edx
	je	LBB0_10
## %bb.8:
	movl	(%r12), %edi
	movzbl	%al, %esi
	callq	_soutp
	movq	_UART_LSR_TEMT@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_sinp
	testl	%eax, (%rbx)
	je	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_serial_ir,4,2                  ## @serial_ir
	.comm	_UART_TX,4,2                    ## @UART_TX
	.comm	_UART_LSR,4,2                   ## @UART_LSR
	.comm	_UART_LSR_THRE,4,2              ## @UART_LSR_THRE
	.comm	_UART_LSR_TEMT,4,2              ## @UART_LSR_TEMT
	.no_dead_strip	_send_pulse_irdeo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_pulse_irdeo
_send_pulse_irdeo:                      ; @send_pulse_irdeo
	.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
	add	w9, w0, w0, lsl #3
Lloh0:
	adrp	x8, _serial_ir@GOTPAGE
Lloh1:
	ldr	x8, [x8, _serial_ir@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #50
	mov	w8, #3
	csinc	w20, w8, wzr, gt
	ubfiz	w8, w9, #3, #25
	cmp	w8, #625
	b.lo	LBB0_10
; %bb.1:
	mov	w8, #0
	lsl	w9, w9, #7
	mov	w10, #5977
	movk	w10, #53687, lsl #16
	umull	x9, w9, w10
	lsr	x21, x9, #45
	mov	w9, #127
Lloh3:
	adrp	x22, _UART_TX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UART_TX@GOTPAGEOFF]
Lloh5:
	adrp	x19, _UART_LSR@GOTPAGE
Lloh6:
	ldr	x19, [x19, _UART_LSR@GOTPAGEOFF]
Lloh7:
	adrp	x23, _UART_LSR_THRE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _UART_LSR_THRE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	x21, x21, #3
	b.le	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	w10, w8, w8, lsl #1
	lsl	w10, w20, w10
	and	w10, w10, #0xfe
	bic	w9, w9, w10, lsr #1
	add	w8, w8, #1
	cmp	w8, #3
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	and	w1, w9, #0xff
	bl	_soutp
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19]
	bl	_sinp
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	mov	w9, #127
	b	LBB0_2
LBB0_7:
	cbz	w8, LBB0_10
; %bb.8:
	ldr	w0, [x22]
	and	w1, w9, #0xff
	bl	_soutp
Lloh9:
	adrp	x20, _UART_LSR_TEMT@GOTPAGE
Lloh10:
	ldr	x20, [x20, _UART_LSR_TEMT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_sinp
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_9
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_serial_ir,4,2                  ; @serial_ir
	.comm	_UART_TX,4,2                    ; @UART_TX
	.comm	_UART_LSR,4,2                   ; @UART_LSR
	.comm	_UART_LSR_THRE,4,2              ; @UART_LSR_THRE
	.comm	_UART_LSR_TEMT,4,2              ; @UART_LSR_TEMT
	.no_dead_strip	_send_pulse_irdeo
.subsections_via_symbols
