	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ati_remote_alloc_buffers
_ati_remote_alloc_buffers:              ## @ati_remote_alloc_buffers
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	_DATA_BUFSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	40(%rbx), %rcx
	callq	_usb_alloc_coherent
	movq	%rax, 32(%rbx)
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	24(%rbx), %rcx
	movq	%r15, %rdi
	callq	_usb_alloc_coherent
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, (%rbx)
	cmpq	$1, %rax
	sbbl	%r15d, %r15d
	movl	%r15d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_BUFSIZE,4,2               ## @DATA_BUFSIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_ati_remote_alloc_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ati_remote_alloc_buffers
_ati_remote_alloc_buffers:              ; @ati_remote_alloc_buffers
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _DATA_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DATA_BUFSIZE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, x19, #40
	bl	_usb_alloc_coherent
	str	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, x19, #24
	mov	x0, x20
	bl	_usb_alloc_coherent
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x20]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19]
	cmp	x0, #0
	csetm	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_BUFSIZE,4,2               ; @DATA_BUFSIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_ati_remote_alloc_buffers
.subsections_via_symbols
