	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcba_usb_xmit
_mcba_usb_xmit:                         ## @mcba_usb_xmit
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	4(%r14), %edi
	movq	_MCBA_USB_TX_BUFF_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movq	%rax, %rcx
	callq	_usb_alloc_coherent
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movl	(%rbx), %edx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movq	%rbx, %r13
	movl	4(%r14), %ebx
	movq	_MCBA_USB_EP_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_usb_sndbulkpipe
	movl	(%r13), %r8d
	movq	_mcba_usb_write_bulk_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_usb_fill_bulk_urb
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	leaq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_usb_anchor_urb
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_usb_unanchor_urb
	movl	4(%r14), %edi
	movq	_MCBA_USB_TX_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r12, %rdx
	callq	_usb_free_coherent
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r14), %edi
	addl	%ebx, %eax
	jne	LBB0_8
## %bb.7:
	callq	_netif_device_detach
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	%r15, %rdi
	callq	_usb_free_urb
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_warn
LBB0_9:
	movq	%r15, %rdi
	callq	_usb_free_urb
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MCBA_USB_TX_BUFF_SIZE,4,2      ## @MCBA_USB_TX_BUFF_SIZE
	.comm	_MCBA_USB_EP_OUT,4,2            ## @MCBA_USB_EP_OUT
	.comm	_mcba_usb_write_bulk_callback,4,2 ## @mcba_usb_write_bulk_callback
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed tx_urb %d\n"

	.no_dead_strip	_mcba_usb_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcba_usb_xmit
_mcba_usb_xmit:                         ; @mcba_usb_xmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x24, _MCBA_USB_TX_BUFF_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MCBA_USB_TX_BUFF_SIZE@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x3, x19
	bl	_usb_alloc_coherent
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	w2, [x24]
	mov	x1, x23
	bl	_memcpy
	ldr	w23, [x20, #4]
Lloh4:
	adrp	x8, _MCBA_USB_EP_OUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MCBA_USB_EP_OUT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	w4, [x24]
Lloh7:
	adrp	x8, _mcba_usb_write_bulk_callback@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mcba_usb_write_bulk_callback@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	mov	x6, x22
	bl	_usb_fill_bulk_urb
Lloh10:
	adrp	x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	add	x1, x20, #8
	mov	x0, x19
	bl	_usb_anchor_urb
	ldr	w1, [x25]
	mov	x0, x19
	bl	_usb_submit_urb
	mov	x22, x0
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_usb_unanchor_urb
	ldr	w0, [x20, #4]
	ldr	w1, [x24]
	ldr	w3, [x19]
	mov	x2, x21
	bl	_usb_free_coherent
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w0, [x20]
	cmn	w22, w8
	b.ne	LBB0_8
; %bb.4:
	bl	_netif_device_detach
	b	LBB0_9
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_6:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_usb_free_urb
	mov	w22, #0
	b	LBB0_10
LBB0_8:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_netdev_warn
LBB0_9:
	mov	x0, x19
	bl	_usb_free_urb
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MCBA_USB_TX_BUFF_SIZE,4,2      ; @MCBA_USB_TX_BUFF_SIZE
	.comm	_MCBA_USB_EP_OUT,4,2            ; @MCBA_USB_EP_OUT
	.comm	_mcba_usb_write_bulk_callback,4,2 ; @mcba_usb_write_bulk_callback
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed tx_urb %d\n"

	.no_dead_strip	_mcba_usb_xmit
.subsections_via_symbols
