	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0700_rc_setup               ## -- Begin function dib0700_rc_setup
	.p2align	4, 0x90
_dib0700_rc_setup:                      ## @dib0700_rc_setup
	.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	8(%rdi), %rax
	xorl	%ebx, %ebx
	cmpl	$66048, (%rax)                  ## imm = 0x10200
	jl	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	_RC_MSG_SIZE_V1_20@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	(%r15), %r12d
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_usb_rcvbulkpipe
	movq	(%r14), %rcx
	movl	(%r13), %r8d
	movq	_dib0700_rc_urb_completion@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	_err
	movl	%r14d, %ebx
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
	movq	%r14, %rdi
	callq	_usb_free_urb
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rc usb alloc urb failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RC_MSG_SIZE_V1_20,4,2          ## @RC_MSG_SIZE_V1_20
L_.str.1:                               ## @.str.1
	.asciz	"rc kzalloc failed\n"

	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_dib0700_rc_urb_completion,4,2  ## @dib0700_rc_urb_completion
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"rc submit urb failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0700_rc_setup               ; -- Begin function dib0700_rc_setup
	.p2align	2
_dib0700_rc_setup:                      ; @dib0700_rc_setup
	.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
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	mov	w9, #512
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x22, _RC_MSG_SIZE_V1_20@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RC_MSG_SIZE_V1_20@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.4:
Lloh4:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x20, #8]
	ldr	w21, [x19]
	mov	x0, x21
	mov	w1, #1
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	x3, [x20]
	ldr	w4, [x22]
Lloh7:
	adrp	x8, _dib0700_rc_urb_completion@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dib0700_rc_urb_completion@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x6, x19
	bl	_usb_fill_bulk_urb
Lloh10:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_usb_submit_urb
	mov	x19, x0
	cbz	w0, LBB0_9
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_err
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
	mov	x0, x20
	bl	_usb_free_urb
LBB0_8:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x19
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rc usb alloc urb failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RC_MSG_SIZE_V1_20,4,2          ; @RC_MSG_SIZE_V1_20
l_.str.1:                               ; @.str.1
	.asciz	"rc kzalloc failed\n"

	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_dib0700_rc_urb_completion,4,2  ; @dib0700_rc_urb_completion
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"rc submit urb failed\n"

.subsections_via_symbols
