	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stir_transmit_thread
_stir_transmit_thread:                  ## @stir_transmit_thread
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	je	LBB0_1
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	24(%rbx), %r15
	leaq	4(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_10
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	xorl	%eax, %eax
	callq	_schedule
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	jne	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_xchg
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_irda_get_next_speed
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_netif_wake_queue
	cmpq	$0, (%r12)
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_stir_send
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	cmpl	$-1, %r13d
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, (%rbx)
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_fifo_txwait
	testq	%rax, %rax
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_change_speed
	testq	%rax, %rax
	je	LBB0_16
	jmp	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_irda_device_txqueue_empty
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_fifo_txwait
	testq	%rax, %rax
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_receive_start
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%rbx)
	movl	$10, %edi
	callq	_msleep
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: receive usb submit failed\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_CTRL1_RXPWD,4,2                ## @CTRL1_RXPWD
	.comm	_CTRL1_TXPWD,4,2                ## @CTRL1_TXPWD
	.comm	_REG_CTRL1,4,2                  ## @REG_CTRL1
	.comm	_current,4,2                    ## @current
	.no_dead_strip	_stir_transmit_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stir_transmit_thread
_stir_transmit_thread:                  ; @stir_transmit_thread
	.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, x0
	ldr	x20, [x0, #16]
	bl	_kthread_should_stop
	cbz	w0, LBB0_2
LBB0_1:
	mov	w0, #0
	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_2:
	add	x21, x19, #24
	add	x22, x20, #4
Lloh0:
	adrp	x26, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	bl	_set_current_state
	bl	_schedule
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_kthread_should_stop
	cbnz	w0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, #0
	bl	_xchg
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	bl	_irda_get_next_speed
	mov	x24, x0
	mov	x0, x20
	bl	_netif_wake_queue
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_stir_send
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_dev_kfree_skb
	cmn	w24, #1
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	cmp	w8, w24
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	w1, #-1
	bl	_fifo_txwait
	cbnz	x0, LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_change_speed
	cbz	x0, LBB0_5
	b	LBB0_1
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_irda_device_txqueue_empty
	cbz	x0, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	w1, #-1
	bl	_fifo_txwait
	cbnz	x0, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_receive_start
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_net_ratelimit
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_dev_info
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x19, #8]
	mov	w0, #10
	bl	_msleep
	b	LBB0_5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: receive usb submit failed\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_CTRL1_RXPWD,4,2                ; @CTRL1_RXPWD
	.comm	_CTRL1_TXPWD,4,2                ; @CTRL1_TXPWD
	.comm	_REG_CTRL1,4,2                  ; @REG_CTRL1
	.comm	_current,4,2                    ; @current
	.no_dead_strip	_stir_transmit_thread
.subsections_via_symbols
