	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_ep5_bulkout            ## -- Begin function cx231xx_ep5_bulkout
	.p2align	4, 0x90
_cx231xx_ep5_bulkout:                   ## @cx231xx_ep5_bulkout
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$-1, -36(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_memcpy
	movl	4(%r15), %ebx
	movl	%ebx, %edi
	movl	$5, %esi
	callq	_usb_sndbulkpipe
	leaq	-36(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	movl	$4096, %ecx                     ## imm = 0x1000
	movl	$2000, %r9d                     ## imm = 0x7D0
	callq	_usb_bulk_msg
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	movl	-36(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_dev_err
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
	cmpl	%r14d, -36(%rbp)
	setne	%bl
	negl	%ebx
LBB0_5:
	movq	%r12, %rdi
	callq	_kfree
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bulk message failed: %d (%d/%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_ep5_bulkout            ; -- Begin function cx231xx_ep5_bulkout
	.p2align	2
_cx231xx_ep5_bulkout:                   ; @cx231xx_ep5_bulkout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w8, #-1
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4096
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x1, x22
	mov	w2, #4096
	bl	_memcpy
	ldr	w22, [x21, #4]
	mov	x0, x22
	mov	w1, #5
	bl	_usb_sndbulkpipe
	mov	x1, x0
	add	x4, sp, #12
	mov	x0, x22
	mov	x2, x19
	mov	w3, #4096
	mov	w5, #2000
	bl	_usb_bulk_msg
	cbz	w0, LBB0_4
; %bb.2:
	mov	x2, x0
	ldr	w0, [x21]
	ldr	w4, [sp, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_err
	mov	w20, #0
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	csetm	w20, ne
LBB0_5:
	mov	x0, x19
	bl	_kfree
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bulk message failed: %d (%d/%d)"

.subsections_via_symbols
