	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpa10x_submit_bulk_urb
_bpa10x_submit_bulk_urb:                ## @bpa10x_submit_bulk_urb
	.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, %r14
	movq	8(%rdi), %r15
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movl	(%r13), %esi
	movl	$64, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	movl	4(%r15), %edi
	movl	$130, %esi
	callq	_usb_rcvbulkpipe
	movl	4(%r15), %esi
	movq	_bpa10x_rx_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %edx
	movq	%rbx, %rcx
	movl	$64, %r8d
	callq	_usb_fill_bulk_urb
	movq	_URB_FREE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_usb_anchor_urb
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	(%r14), %esi
	movl	%ebx, %ecx
	negl	%ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rdx
	callq	_BT_ERR
	movq	%r12, %rdi
	callq	_usb_unanchor_urb
LBB0_4:
	movq	%r12, %rdi
	callq	_usb_free_urb
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bpa10x_rx_complete,4,2         ## @bpa10x_rx_complete
	.comm	_URB_FREE_BUFFER,4,2            ## @URB_FREE_BUFFER
L_.str.1:                               ## @.str.1
	.asciz	"%s urb %p submission failed (%d)"

	.no_dead_strip	_bpa10x_submit_bulk_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpa10x_submit_bulk_urb
_bpa10x_submit_bulk_urb:                ; @bpa10x_submit_bulk_urb
	.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	x20, x0
	ldr	x21, [x0, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w1, [x23]
	mov	w0, #64
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	w0, [x21, #4]
	mov	w1, #130
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w1, [x21, #4]
Lloh4:
	adrp	x8, _bpa10x_rx_complete@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bpa10x_rx_complete@GOTPAGEOFF]
Lloh6:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x3, x22
	mov	w4, #64
	mov	x6, x20
	bl	_usb_fill_bulk_urb
Lloh7:
	adrp	x8, _URB_FREE_BUFFER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _URB_FREE_BUFFER@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_usb_anchor_urb
	ldr	w1, [x23]
	mov	x0, x19
	bl	_usb_submit_urb
	mov	x21, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
	ldr	w1, [x20]
	neg	w3, w21
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_BT_ERR
	mov	x0, x19
	bl	_usb_unanchor_urb
LBB0_4:
	mov	x0, x19
	bl	_usb_free_urb
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_usb_free_urb
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bpa10x_rx_complete,4,2         ; @bpa10x_rx_complete
	.comm	_URB_FREE_BUFFER,4,2            ; @URB_FREE_BUFFER
l_.str.1:                               ; @.str.1
	.asciz	"%s urb %p submission failed (%d)"

	.no_dead_strip	_bpa10x_submit_bulk_urb
.subsections_via_symbols
