	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ati_remote_sendpacket
_ati_remote_sendpacket:                 ## @ati_remote_sendpacket
	.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	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	16(%rax), %rbx
	incq	%rbx
	movl	%esi, %edi
	callq	_LO
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movl	%r12d, %edi
	callq	_HI
	movq	8(%r15), %rcx
	movq	16(%rcx), %rcx
	movb	%al, (%rcx)
	movl	%r12d, %edi
	callq	_LO
	incq	%rax
	movq	8(%r15), %rdi
	movq	%rax, 8(%rdi)
	movl	32(%r15), %eax
	movl	%eax, 4(%rdi)
	movq	_SEND_FLAG_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	24(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	jmp	LBB0_5
LBB0_2:
	movl	16(%r15), %edi
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	addl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_SEND_FLAG_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	testl	%eax, (%r15)
	setne	%sil
LBB0_4:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	movq	8(%r15), %rdi
	callq	_usb_kill_urb
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEND_FLAG_IN_PROGRESS,4,2      ## @SEND_FLAG_IN_PROGRESS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendpacket: usb_submit_urb failed: %d\n"

	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_SEND_FLAG_COMPLETE,4,2         ## @SEND_FLAG_COMPLETE
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_ati_remote_sendpacket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ati_remote_sendpacket
_ati_remote_sendpacket:                 ; @ati_remote_sendpacket
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #16]
	add	x22, x8, #1
	mov	x0, x1
	bl	_LO
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_memcpy
	mov	x0, x21
	bl	_HI
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	strb	w0, [x8]
	mov	x0, x21
	bl	_LO
	add	x8, x0, #1
	ldr	x0, [x19, #8]
	str	x8, [x0, #8]
	ldr	w8, [x19, #32]
Lloh0:
	adrp	x9, _SEND_FLAG_IN_PROGRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEND_FLAG_IN_PROGRESS@GOTPAGEOFF]
	str	w8, [x0, #4]
Lloh2:
	ldr	w8, [x9]
	str	w8, [x19]
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	b	LBB0_6
LBB0_2:
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmn	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _SEND_FLAG_COMPLETE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SEND_FLAG_COMPLETE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	b	LBB0_5
LBB0_4:
	mov	w1, #1
LBB0_5:
Lloh14:
	adrp	x8, _HZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_wait_event_timeout
	ldr	x0, [x19, #8]
	bl	_usb_kill_urb
LBB0_6:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SEND_FLAG_IN_PROGRESS,4,2      ; @SEND_FLAG_IN_PROGRESS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendpacket: usb_submit_urb failed: %d\n"

	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_SEND_FLAG_COMPLETE,4,2         ; @SEND_FLAG_COMPLETE
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_ati_remote_sendpacket
.subsections_via_symbols
