	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igorplugusb_irdata
_igorplugusb_irdata:                    ## @igorplugusb_irdata
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	movl	16(%rdi), %edi
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r14d, %r8d
	callq	_dev_dbg
	movq	(%rbx), %rax
	movl	8(%rax), %edx
	movq	_HEADERLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	%edx, %r12d
	cmpl	%r14d, %r12d
	jae	LBB0_1
## %bb.2:
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
LBB0_4:
	leaq	-48(%rbp), %r15
	movl	%r12d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %r13d
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	%r13d, %ecx
	imull	$85333, (%rax,%rcx,4), %eax     ## imm = 0x14D55
	movl	%eax, -48(%rbp)
	movl	%r13d, %eax
	andl	$1, %eax
	movl	%eax, -44(%rbp)
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	callq	_ir_raw_event_store_with_filter
	incl	%r13d
	cmpl	%r14d, %r13d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_HEADERLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_7
LBB0_1:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_8:
	movq	8(%rbx), %rdi
	movl	(%rdi), %eax
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_ir_raw_event_store_with_filter
	movq	8(%rbx), %rdi
	callq	_ir_raw_event_handle
LBB0_9:
	movq	_SET_INFRABUFFER_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_igorplugusb_cmd
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irdata: %*ph (len=%u)"

	.comm	_HEADERLEN,4,2                  ## @HEADERLEN
L_.str.1:                               ## @.str.1
	.asciz	"receive overflow invalid: %u"

L_.str.2:                               ## @.str.2
	.asciz	"receive overflow, at least %u lost"

	.comm	_SET_INFRABUFFER_EMPTY,4,2      ## @SET_INFRABUFFER_EMPTY
	.no_dead_strip	_igorplugusb_irdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igorplugusb_irdata
_igorplugusb_irdata:                    ; @igorplugusb_irdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	w0, [x0, #16]
	ldr	x3, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x4, x20
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
Lloh2:
	adrp	x21, _HEADERLEN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HEADERLEN@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w22, w8, w2
	cmp	w22, w20
	b.hs	LBB0_6
; %bb.1:
	cbz	w2, LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_3:
	mov	w23, #19797
	movk	w23, #1, lsl #16
	mov	x24, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x0, [x19]
	ldr	w8, [x8, w24, uxtw #2]
	mul	w8, w8, w23
	and	w9, w24, #0x1
	stp	w8, w9, [sp, #8]
	add	x1, sp, #8
	bl	_ir_raw_event_store_with_filter
	add	w8, w24, #1
	ldr	w9, [x21]
	cmp	w8, w20
	csinc	w24, w9, w24, eq
	cmp	w24, w22
	b.ne	LBB0_4
; %bb.5:
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
	stp	w8, wzr, [sp, #8]
	add	x1, sp, #8
	bl	_ir_raw_event_store_with_filter
	ldr	x0, [x19, #8]
	bl	_ir_raw_event_handle
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_7:
Lloh8:
	adrp	x8, _SET_INFRABUFFER_EMPTY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SET_INFRABUFFER_EMPTY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_igorplugusb_cmd
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irdata: %*ph (len=%u)"

	.comm	_HEADERLEN,4,2                  ; @HEADERLEN
l_.str.1:                               ; @.str.1
	.asciz	"receive overflow invalid: %u"

l_.str.2:                               ; @.str.2
	.asciz	"receive overflow, at least %u lost"

	.comm	_SET_INFRABUFFER_EMPTY,4,2      ; @SET_INFRABUFFER_EMPTY
	.no_dead_strip	_igorplugusb_irdata
.subsections_via_symbols
