	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mceusb_tx_ir
_mceusb_tx_ir:                          ## @mceusb_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	leaq	-104(%rbp), %rdi
	callq	_do_gettimeofday
	movq	_MCE_CMDBUF_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_MCE_COMMAND_HEADER@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r13)
	movq	_MCE_CMD_S_TXMASK@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, 1(%r13)
	movb	(%r12), %al
	movb	%al, 2(%r13)
	xorl	%edx, %edx
	movl	$3, %ecx
	cmpl	$4, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jl	LBB0_16
## %bb.3:
	cmpl	$4, (%r15)
	jl	LBB0_16
## %bb.4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	sarl	$2, %eax
	cltq
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$3, %ecx
	xorl	%edi, %edi
	movq	_MCE_TIME_UNIT@GOTPCREL(%rip), %rsi
	movq	_MCE_TX_HEADER_LENGTH@GOTPCREL(%rip), %r10
	movq	_MCE_CODE_LENGTH@GOTPCREL(%rip), %r14
	movq	_MCE_PULSE_BIT@GOTPCREL(%rip), %r8
	movq	_MCE_MAX_PULSE_LENGTH@GOTPCREL(%rip), %r9
	xorl	%r11d, %r11d
	xorl	%edx, %edx
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movslq	(%rbx,%r11,4), %rax
	addq	%rax, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rsi)
	movq	_MCE_IRDATA_HEADER@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	testb	$1, %r11b
	cmovnel	%edi, %eax
	orl	%edx, %eax
	movslq	%ecx, %rdx
	incl	%ecx
	movb	%al, (%r13,%rdx)
	movl	(%rbx,%r11,4), %eax
	subl	(%r9), %eax
	jle	LBB0_13
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rbx,%r11,4)
	movl	(%r15), %r12d
	cmpl	%r12d, %ecx
	jge	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ecx, %eax
	subl	(%r10), %eax
	cltd
	idivl	(%r14)
	testl	%edx, %edx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movzbl	(%rsi), %eax
	movslq	%ecx, %rdx
	incl	%ecx
	movb	%al, (%r13,%rdx)
	movl	(%r15), %r12d
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	cmpl	%r12d, %ecx
	jge	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	(%rbx,%r11,4), %edx
	movl	(%r8), %eax
	cmpl	%eax, %edx
	jl	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r9), %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r11
	cmpq	-64(%rbp), %r11                 ## 8-byte Folded Reload
	jge	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	(%r15), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_MCE_TIME_UNIT@GOTPCREL(%rip), %rsi
	jl	LBB0_5
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_14:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_16:
	movq	%rdx, %rbx
	movq	_MCE_COMMAND_IRDATA@GOTPCREL(%rip), %rsi
	movq	_MCE_TX_HEADER_LENGTH@GOTPCREL(%rip), %rdx
	movl	%ecx, %eax
	subl	(%rdx), %eax
	movq	_MCE_CODE_LENGTH@GOTPCREL(%rip), %rdi
	cltd
	idivl	(%rdi)
	movb	(%rsi), %al
	addb	%dl, %al
	decb	%al
	movl	%ecx, %esi
	subl	%edx, %esi
	movslq	%esi, %rdx
	movb	%al, (%r13,%rdx)
	cmpl	(%r15), %ecx
	jge	LBB0_19
## %bb.17:
	movq	_MCE_IRDATA_TRAILER@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movslq	%ecx, %rdx
	incl	%ecx
	movb	%al, (%r13,%rdx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ecx, %edx
	callq	_mce_async_out
	leaq	-88(%rbp), %rdi
	callq	_do_gettimeofday
	movslq	-88(%rbp), %rax
	movslq	-104(%rbp), %rcx
	subq	%rcx, %rax
	imulq	$1000000, %rax, %rax            ## imm = 0xF4240
	addq	-96(%rbp), %rbx
	addq	-80(%rbp), %rax
	subq	%rax, %rbx
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%rbx, %rdi
	callq	_usecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_18
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.20:
	negl	%ebx
	jmp	LBB0_21
LBB0_18:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_21:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCE_CMDBUF_SIZE,4,2            ## @MCE_CMDBUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MCE_COMMAND_HEADER,1,0         ## @MCE_COMMAND_HEADER
	.comm	_MCE_CMD_S_TXMASK,1,0           ## @MCE_CMD_S_TXMASK
	.comm	_MCE_TIME_UNIT,4,2              ## @MCE_TIME_UNIT
	.comm	_MCE_TX_HEADER_LENGTH,4,2       ## @MCE_TX_HEADER_LENGTH
	.comm	_MCE_CODE_LENGTH,4,2            ## @MCE_CODE_LENGTH
	.comm	_MCE_IRDATA_HEADER,1,0          ## @MCE_IRDATA_HEADER
	.comm	_MCE_PULSE_BIT,4,2              ## @MCE_PULSE_BIT
	.comm	_MCE_MAX_PULSE_LENGTH,4,2       ## @MCE_MAX_PULSE_LENGTH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MCE_COMMAND_IRDATA,1,0         ## @MCE_COMMAND_IRDATA
	.comm	_MCE_IRDATA_TRAILER,1,0         ## @MCE_IRDATA_TRAILER
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.no_dead_strip	_mceusb_tx_ir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mceusb_tx_ir
_mceusb_tx_ir:                          ; @mceusb_tx_ir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x22, x1
	ldr	x21, [x0]
	add	x0, sp, #16
	bl	_do_gettimeofday
Lloh0:
	adrp	x24, _MCE_CMDBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MCE_CMDBUF_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	w0, w8, #2
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x20, x0
	mov	x23, #0
Lloh5:
	adrp	x8, _MCE_COMMAND_HEADER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MCE_COMMAND_HEADER@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x0]
Lloh7:
	adrp	x8, _MCE_CMD_S_TXMASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MCE_CMD_S_TXMASK@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x0, #1]
	ldrb	w8, [x21]
	strb	w8, [x0, #2]
	mov	w8, #3
	cmp	w19, #4
	b.lt	LBB0_12
; %bb.2:
	ldr	w9, [x24]
	cmp	w9, #4
	b.lt	LBB0_12
; %bb.3:
	mov	x9, #0
	mov	x23, #0
	asr	w8, w19, #2
	sxtw	x10, w8
	mov	w8, #3
Lloh9:
	adrp	x11, _MCE_TIME_UNIT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MCE_TIME_UNIT@GOTPAGEOFF]
Lloh11:
	adrp	x12, _MCE_TX_HEADER_LENGTH@GOTPAGE
Lloh12:
	ldr	x12, [x12, _MCE_TX_HEADER_LENGTH@GOTPAGEOFF]
Lloh13:
	adrp	x13, _MCE_CODE_LENGTH@GOTPAGE
Lloh14:
	ldr	x13, [x13, _MCE_CODE_LENGTH@GOTPAGEOFF]
Lloh15:
	adrp	x14, _MCE_IRDATA_HEADER@GOTPAGE
Lloh16:
	ldr	x14, [x14, _MCE_IRDATA_HEADER@GOTPAGEOFF]
Lloh17:
	adrp	x15, _MCE_PULSE_BIT@GOTPAGE
Lloh18:
	ldr	x15, [x15, _MCE_PULSE_BIT@GOTPAGEOFF]
Lloh19:
	adrp	x16, _MCE_MAX_PULSE_LENGTH@GOTPAGE
Lloh20:
	ldr	x16, [x16, _MCE_MAX_PULSE_LENGTH@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldrsw	x17, [x22, x9, lsl #2]
	add	x23, x23, x17
	ldr	w0, [x11]
	sdiv	w17, w17, w0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x17, x8
	cmp	w17, w0
	b.ge	LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	lsl	x0, x9, #2
	ldr	w8, [x22, x0]
	ldr	w1, [x15]
	ldr	w2, [x16]
	cmp	w8, w1
	csel	w8, w8, w2, lt
	tst	x9, #0x1
	csel	w1, w1, wzr, eq
	orr	w1, w8, w1
	add	w8, w17, #1
	strb	w1, [x20, w17, sxtw]
	ldr	w17, [x22, x0]
	ldr	w0, [x16]
	subs	w17, w17, w0
	b.le	LBB0_10
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w17, [x22, x9, lsl #2]
	ldr	w0, [x24]
	cmp	w8, w0
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w17, [x12]
	sub	w17, w8, w17
	ldr	w1, [x13]
	sdiv	w2, w17, w1
	msub	w17, w2, w1, w17
	cbnz	w17, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w0, [x14]
	add	w17, w8, #1
	strb	w0, [x20, w8, sxtw]
	ldr	w0, [x24]
	cmp	w17, w0
	b.lt	LBB0_6
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, x10
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w17, [x24]
	cmp	w8, w17
	b.lt	LBB0_4
LBB0_12:
Lloh21:
	adrp	x9, _MCE_COMMAND_IRDATA@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MCE_COMMAND_IRDATA@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh23:
	adrp	x10, _MCE_TX_HEADER_LENGTH@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MCE_TX_HEADER_LENGTH@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
Lloh26:
	adrp	x11, _MCE_CODE_LENGTH@GOTPAGE
Lloh27:
	ldr	x11, [x11, _MCE_CODE_LENGTH@GOTPAGEOFF]
	sub	w10, w8, w10
Lloh28:
	ldr	w11, [x11]
	sdiv	w12, w10, w11
	msub	w10, w12, w11, w10
	add	w9, w9, w10
	sub	w11, w9, #1
	sxtw	x9, w8
	sub	x10, x9, w10, sxtw
	strb	w11, [x20, x10]
	ldr	w10, [x24]
	cmp	w8, w10
	b.ge	LBB0_14
; %bb.13:
Lloh29:
	adrp	x8, _MCE_IRDATA_TRAILER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MCE_IRDATA_TRAILER@GOTPAGEOFF]
	ldrb	w8, [x8]
	add	w2, w9, #1
	strb	w8, [x20, x9]
	mov	x0, x21
	mov	x1, x20
	bl	_mce_async_out
	mov	x0, sp
	bl	_do_gettimeofday
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #24]
	ldrsw	x10, [sp]
	ldrsw	x11, [sp, #16]
	sub	x10, x10, x11
	mov	w11, #16960
	movk	w11, #15, lsl #16
	madd	x8, x10, x11, x8
	add	x9, x23, x9
	sub	x21, x9, x8
Lloh31:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x21
	bl	_usecs_to_jiffies
	bl	_schedule_timeout
	mov	x0, x20
	bl	_kfree
	b	LBB0_17
LBB0_14:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_kfree
	cbz	w21, LBB0_17
; %bb.15:
	neg	w19, w21
	b	LBB0_17
LBB0_16:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_17:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MCE_CMDBUF_SIZE,4,2            ; @MCE_CMDBUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MCE_COMMAND_HEADER,1,0         ; @MCE_COMMAND_HEADER
	.comm	_MCE_CMD_S_TXMASK,1,0           ; @MCE_CMD_S_TXMASK
	.comm	_MCE_TIME_UNIT,4,2              ; @MCE_TIME_UNIT
	.comm	_MCE_TX_HEADER_LENGTH,4,2       ; @MCE_TX_HEADER_LENGTH
	.comm	_MCE_CODE_LENGTH,4,2            ; @MCE_CODE_LENGTH
	.comm	_MCE_IRDATA_HEADER,1,0          ; @MCE_IRDATA_HEADER
	.comm	_MCE_PULSE_BIT,4,2              ; @MCE_PULSE_BIT
	.comm	_MCE_MAX_PULSE_LENGTH,4,2       ; @MCE_MAX_PULSE_LENGTH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MCE_COMMAND_IRDATA,1,0         ; @MCE_COMMAND_IRDATA
	.comm	_MCE_IRDATA_TRAILER,1,0         ; @MCE_IRDATA_TRAILER
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.no_dead_strip	_mceusb_tx_ir
.subsections_via_symbols
