	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ati_remote2_urb_init
_ati_remote2_urb_init:                  ## @ati_remote2_urb_init
	.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	8(%rdi), %rcx
	movq	32(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_usb_alloc_coherent
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %esi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_rcvintpipe
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_usb_pipeout
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_usb_maxpacket
	cmpl	$4, %eax
	movl	$4, %ecx
	cmovgel	%ecx, %eax
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	(%rcx), %rdi
	movq	24(%rbx), %rcx
	movl	(%rcx), %ecx
	movq	_ati_remote2_complete_mouse@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	(%rdx), %rdx
	movl	(%rdx), %r10d
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%eax, %r8d
	pushq	%r10
	pushq	%rbx
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movq	(%rax), %rax
	movl	%edx, 4(%rax)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rax)
	movl	(%r12), %edx
	addq	$4, %rcx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_usb_alloc_coherent
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movl	(%r12), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.6:
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_rcvintpipe
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_usb_pipeout
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_usb_maxpacket
	cmpl	$4, %eax
	movl	$4, %r8d
	cmovll	%eax, %r8d
	movq	(%rbx), %rax
	movq	16(%rbx), %rdx
	movq	8(%rax), %rdi
	movq	24(%rbx), %rax
	movl	4(%rax), %ecx
	movq	_ati_remote2_complete_key@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	8(%rdx), %rax
	movl	(%rax), %eax
	movq	%r14, %rsi
	movl	%r12d, %edx
	pushq	%rax
	pushq	%rbx
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	4(%rcx), %ecx
	movq	8(%rax), %rax
	movl	%ecx, 4(%rax)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ati_remote2_complete_key,4,2   ## @ati_remote2_complete_key
	.comm	_ati_remote2_complete_mouse,4,2 ## @ati_remote2_complete_mouse
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_ati_remote2_urb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ati_remote2_urb_init
_ati_remote2_urb_init:                  ; @ati_remote2_urb_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x20, [x0, #32]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	ldr	x3, [x0, #8]
	mov	x0, x20
	mov	w1, #4
	bl	_usb_alloc_coherent
	ldr	x8, [x19, #24]
	str	w0, [x8]
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w1, [x22]
	mov	w0, #0
	bl	_usb_alloc_urb
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_usb_rcvintpipe
	mov	x21, x0
	bl	_usb_pipeout
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_usb_maxpacket
	mov	w8, #4
	cmp	w0, #4
	csel	w4, w0, w8, lt
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldp	x9, x8, [x19, #16]
	ldr	w3, [x8]
Lloh2:
	adrp	x8, _ati_remote2_complete_mouse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ati_remote2_complete_mouse@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	ldr	x8, [x9]
	ldr	w7, [x8]
	mov	x1, x20
	mov	x2, x21
	mov	x6, x19
	bl	_usb_fill_int_urb
	ldp	x8, x3, [x19]
	ldr	w9, [x3], #4
	ldr	x8, [x8]
Lloh5:
	adrp	x23, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
	ldr	w10, [x23]
	ldr	w11, [x8]
	orr	w10, w11, w10
	stp	w10, w9, [x8]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #4
	bl	_usb_alloc_coherent
	ldr	x8, [x19, #24]
	str	w0, [x8, #4]
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w1, [x22]
	mov	w0, #0
	bl	_usb_alloc_urb
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_usb_rcvintpipe
	mov	x21, x0
	bl	_usb_pipeout
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_usb_maxpacket
	mov	w8, #4
	cmp	w0, #4
	csel	w4, w0, w8, lt
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	ldp	x9, x8, [x19, #16]
	ldr	w3, [x8, #4]
Lloh7:
	adrp	x8, _ati_remote2_complete_key@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ati_remote2_complete_key@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	ldr	x8, [x9, #8]
	ldr	w7, [x8]
	mov	x1, x20
	mov	x2, x21
	mov	x6, x19
	bl	_usb_fill_int_urb
	mov	w0, #0
	ldp	x9, x8, [x19]
	ldr	w8, [x8, #4]
	ldr	x9, [x9, #8]
	ldr	w10, [x23]
	ldr	w11, [x9]
	orr	w10, w11, w10
	stp	w10, w8, [x9]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ati_remote2_complete_key,4,2   ; @ati_remote2_complete_key
	.comm	_ati_remote2_complete_mouse,4,2 ; @ati_remote2_complete_mouse
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_ati_remote2_urb_init
.subsections_via_symbols
