	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stir_send
_stir_send:                             ## @stir_send
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_receive_stop
	movq	%r14, %rdi
	callq	_irda_get_mtt
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_turnaround_delay
LBB0_2:
	movl	16(%r12), %edi
	callq	_isfir
	movl	8(%r12), %esi
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_wrap_fir_skb
	jmp	LBB0_5
LBB0_4:
	callq	_wrap_sir_skb
LBB0_5:
	movl	%eax, %r15d
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_fifo_txwait
LBB0_7:
	movq	(%r12), %rax
	incl	8(%rax)
	movq	(%r14), %rsi
	addl	%esi, 4(%rax)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	callq	_pr_debug
	movl	12(%r12), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_usb_sndbulkpipe
	movl	8(%r12), %edx
	movq	_TRANSMIT_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_usb_bulk_msg
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r12), %rax
	incl	(%rax)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send %d (%d)\n"

	.comm	_TRANSMIT_TIMEOUT,4,2           ## @TRANSMIT_TIMEOUT
	.no_dead_strip	_stir_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stir_send
_stir_send:                             ; @stir_send
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #24]
	cbz	x22, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_receive_stop
	mov	x0, x20
	bl	_irda_get_mtt
	mov	x1, x0
	mov	x0, x19
	bl	_turnaround_delay
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_isfir
	ldr	w1, [x19, #8]
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_wrap_fir_skb
	mov	x21, x0
	cbnz	x22, LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_fifo_txwait
LBB0_5:
	ldr	x8, [x19]
	ldr	x1, [x20]
	ldur	d0, [x8, #4]
	movi.2s	v1, #1
	mov.s	v1[0], w1
	add.2s	v0, v0, v1
	stur	d0, [x8, #4]
Lloh0:
	adrp	x9, _jiffies@GOTPAGE
Lloh1:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #12]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_pr_debug
	ldr	w20, [x19, #12]
	mov	x0, x20
	mov	w1, #1
	bl	_usb_sndbulkpipe
	mov	x1, x0
	ldr	w2, [x19, #8]
Lloh5:
	adrp	x8, _TRANSMIT_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRANSMIT_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x3, x21
	mov	x4, #0
	bl	_usb_bulk_msg
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	bl	_wrap_sir_skb
	mov	x21, x0
	cbnz	x22, LBB0_5
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send %d (%d)\n"

	.comm	_TRANSMIT_TIMEOUT,4,2           ; @TRANSMIT_TIMEOUT
	.no_dead_strip	_stir_send
.subsections_via_symbols
