	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serial_ir_tx
_serial_ir_tx:                          ## @serial_ir_tx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	_hardware@GOTPCREL(%rip), %rcx
	movq	_type@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	addq	(%rcx), %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %rax
	movq	_IR_IRDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_on
LBB0_2:
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.3:
	movl	%eax, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	movq	_hardware@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_spin_unlock_irqrestore
	leal	-25(%rbx), %edi
	addl	$25, %ebx
	movl	%ebx, %esi
	callq	_usleep_range
	movq	(%r13), %rax
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	movq	_hardware@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_spin_lock_irqsave
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_hardware@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r13), %rax
	testb	$1, %r14b
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%rax,2), %rax
	movl	(%r15,%r14,4), %edi
	movl	%r12d, %esi
	callq	*8(%rcx,%rax,8)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%rax,2), %rdx
	xorl	%eax, %eax
	callq	*16(%rcx,%rdx,8)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15,%r14,4), %esi
	movl	%r12d, %edi
	callq	_ktime_add_us
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ktime_us_delta
	movl	%eax, %ebx
	cmpl	$26, %eax
	jge	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_udelay
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	callq	_off
	movq	(%r13), %rax
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	movq	_hardware@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_spin_unlock_irqrestore
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hardware,8,3                   ## @hardware
	.comm	_type,8,3                       ## @type
	.comm	_IR_IRDEO,8,3                   ## @IR_IRDEO
	.no_dead_strip	_serial_ir_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serial_ir_tx
_serial_ir_tx:                          ; @serial_ir_tx
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x23, _hardware@GOTPAGE
Lloh1:
	ldr	x23, [x23, _hardware@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x24, _type@GOTPAGE
Lloh3:
	ldr	x24, [x24, _type@GOTPAGEOFF]
	ldr	x9, [x24]
	mov	w10, #24
	madd	x0, x9, x10, x8
	bl	_spin_lock_irqsave
	ldr	x8, [x24]
Lloh4:
	adrp	x9, _IR_IRDEO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IR_IRDEO@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_on
LBB0_2:
	bl	_ktime_get
	cbz	w19, LBB0_12
; %bb.3:
	mov	x21, x0
	mov	x25, #0
	mov	w26, w19
	mov	w27, #24
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	madd	x0, x9, x27, x8
	bl	_spin_unlock_irqrestore
	sub	w0, w22, #25
	add	w1, w22, #25
	bl	_usleep_range
	ldr	x8, [x23]
	ldr	x9, [x24]
	madd	x0, x9, x27, x8
	bl	_spin_lock_irqsave
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	cmp	x26, x25
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	madd	x8, x9, x27, x8
	tbnz	w25, #0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8, #8]
	ldr	w0, [x20, x25, lsl #2]
	mov	x1, x21
	blr	x8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8, #16]
	blr	x8
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x20, x25, lsl #2]
	mov	x0, x21
	bl	_ktime_add_us
	mov	x21, x0
	bl	_ktime_get
	mov	x1, x0
	mov	x0, x21
	bl	_ktime_us_delta
	mov	x22, x0
	cmp	w0, #26
	b.ge	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_udelay
	b	LBB0_5
LBB0_12:
	bl	_off
	ldr	x8, [x23]
	ldr	x9, [x24]
	mov	w10, #24
	madd	x0, x9, x10, x8
	bl	_spin_unlock_irqrestore
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hardware,8,3                   ; @hardware
	.comm	_type,8,3                       ; @type
	.comm	_IR_IRDEO,8,3                   ; @IR_IRDEO
	.no_dead_strip	_serial_ir_tx
.subsections_via_symbols
