	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loop_tx_ir
_loop_tx_ir:                            ## @loop_tx_ir
	.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
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_rawir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_DEFINE_IR_RAW_EVENT
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.1:
	movl	%r15d, %eax
	andl	$3, %eax
	jne	LBB0_5
## %bb.2:
	cmpl	$4, %r15d
	jb	LBB0_19
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %eax
	sarl	$2, %eax
	cmpl	$2, %eax
	movl	$1, %r12d
	cmovael	%eax, %r12d
	cmpl	$8, %r12d
	jae	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_20
LBB0_6:
	movl	%r12d, %eax
	andl	$-8, %eax
	leaq	-8(%rax), %rdx
	movq	%rdx, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.7:
	movq	%rcx, %rsi
	andq	$-2, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r13,%rdx,4), %xmm2
	movdqu	16(%r13,%rdx,4), %xmm3
	movdqu	32(%r13,%rdx,4), %xmm4
	movdqu	48(%r13,%rdx,4), %xmm5
	pabsd	%xmm2, %xmm2
	paddd	%xmm0, %xmm2
	pabsd	%xmm3, %xmm3
	paddd	%xmm1, %xmm3
	pabsd	%xmm4, %xmm0
	paddd	%xmm2, %xmm0
	pabsd	%xmm5, %xmm1
	paddd	%xmm3, %xmm1
	addq	$16, %rdx
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	testb	$1, %cl
	je	LBB0_11
LBB0_10:
	movdqu	(%r13,%rdx,4), %xmm2
	movdqu	16(%r13,%rdx,4), %xmm3
	pabsd	%xmm2, %xmm2
	paddd	%xmm2, %xmm0
	pabsd	%xmm3, %xmm2
	paddd	%xmm2, %xmm1
LBB0_11:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpq	%r12, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rax,4), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	addl	%edx, %ebx
	incq	%rax
	cmpq	%rax, %r12
	jne	LBB0_12
LBB0_13:
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.14:
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	jl	LBB0_16
## %bb.15:
	movq	%rdi, %rcx
	cmpq	16(%rdi), %rax
	jle	LBB0_23
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
LBB0_17:
	callq	_dprintk
LBB0_18:
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movl	%ebx, %edi
	callq	_usecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout
	jmp	LBB0_21
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
LBB0_20:
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	testb	$1, %cl
	jne	LBB0_10
	jmp	LBB0_11
LBB0_23:
	cmpq	$0, 32(%rcx)
	jne	LBB0_25
## %bb.24:
	movq	_RXMASK_REGULAR@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_25:
	movq	_RXMASK_LEARNING@GOTPCREL(%rip), %rax
LBB0_26:
	movq	_rawir@GOTPCREL(%rip), %rsi
	movl	(%rax), %eax
	testl	%eax, 24(%rdi)
	je	LBB0_32
## %bb.27:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%r14
	cmpq	%r14, %r12
	je	LBB0_31
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	notl	%eax
	andl	$1, %eax
	movl	%eax, (%rsi)
	movl	(%r13,%r14,4), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	movl	%ecx, 4(%rsi)
	testl	%eax, %eax
	je	LBB0_28
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ir_raw_event_store_with_filter
	movq	_rawir@GOTPCREL(%rip), %rsi
	jmp	LBB0_28
LBB0_31:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ir_raw_event_handle
	jmp	LBB0_18
LBB0_32:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_rawir,8,2                      ## @rawir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid tx buffer size\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid tx data, total duration zero\n"

L_.str.2:                               ## @.str.2
	.asciz	"ignoring tx, carrier out of range\n"

	.comm	_RXMASK_LEARNING,4,2            ## @RXMASK_LEARNING
	.comm	_RXMASK_REGULAR,4,2             ## @RXMASK_REGULAR
L_.str.3:                               ## @.str.3
	.asciz	"ignoring tx, rx mask mismatch\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.no_dead_strip	_loop_tx_ir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loop_tx_ir
_loop_tx_ir:                            ; @loop_tx_ir
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x25, [x0]
Lloh0:
	adrp	x22, _rawir@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rawir@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_DEFINE_IR_RAW_EVENT
	cbz	w19, LBB0_5
; %bb.1:
	and	w8, w19, #0x3
	cbnz	w8, LBB0_5
; %bb.2:
	cmp	w19, #4
	b.lo	LBB0_17
; %bb.3:
	asr	w8, w19, #2
	cmp	w8, #1
	csinc	w24, w8, wzr, hi
	cmp	w24, #16
	b.hs	LBB0_6
; %bb.4:
	mov	x8, #0
	mov	w23, #0
	b	LBB0_9
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_18
LBB0_6:
	and	x8, x24, #0xfffffff0
	add	x9, x21, #32
	movi.2d	v0, #0000000000000000
	mov	x10, x8
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	abs.4s	v4, v4
	abs.4s	v5, v5
	abs.4s	v6, v6
	abs.4s	v7, v7
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x10, x10, #16
	b.ne	LBB0_7
; %bb.8:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w23, s0
	cmp	x8, x24
	b.eq	LBB0_11
LBB0_9:
	add	x9, x21, x8, lsl #2
	sub	x8, x24, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	cmp	w10, #0
	cneg	w10, w10, mi
	add	w23, w10, w23
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	cbz	w23, LBB0_17
; %bb.12:
	ldp	x8, x9, [x25]
	cmp	x8, x9
	b.lt	LBB0_14
; %bb.13:
	ldr	x9, [x25, #16]
	cmp	x8, x9
	b.le	LBB0_20
LBB0_14:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_15:
	bl	_dprintk
LBB0_16:
Lloh6:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x23
	bl	_usecs_to_jiffies
	bl	_schedule_timeout
	b	LBB0_19
LBB0_17:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_18:
	bl	_dprintk
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_19:
	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
LBB0_20:
Lloh14:
	adrp	x8, _RXMASK_REGULAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RXMASK_REGULAR@GOTPAGEOFF]
Lloh16:
	adrp	x9, _RXMASK_LEARNING@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RXMASK_LEARNING@GOTPAGEOFF]
	ldr	x10, [x25, #32]
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	w9, [x25, #24]
	tst	w8, w9
	b.eq	LBB0_26
; %bb.21:
	mov	x25, #0
	mov	w26, #1000
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x25, x25, #1
	cmp	x24, x25
	b.eq	LBB0_25
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mvn	w8, w25
	and	w8, w8, #0x1
	str	w8, [x22]
	ldr	w8, [x21, x25, lsl #2]
	cmp	w8, #0
	cneg	w9, w8, mi
	mul	w9, w9, w26
	str	w9, [x22, #4]
	cbz	w8, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_ir_raw_event_store_with_filter
	b	LBB0_22
LBB0_25:
	mov	x0, x20
	bl	_ir_raw_event_handle
	b	LBB0_16
LBB0_26:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_rawir,8,2                      ; @rawir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid tx buffer size\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid tx data, total duration zero\n"

l_.str.2:                               ; @.str.2
	.asciz	"ignoring tx, carrier out of range\n"

	.comm	_RXMASK_LEARNING,4,2            ; @RXMASK_LEARNING
	.comm	_RXMASK_REGULAR,4,2             ; @RXMASK_REGULAR
l_.str.3:                               ; @.str.3
	.asciz	"ignoring tx, rx mask mismatch\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.no_dead_strip	_loop_tx_ir
.subsections_via_symbols
