	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kaweth_resubmit_rx_urb
_kaweth_resubmit_rx_urb:                ## @kaweth_resubmit_rx_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movl	40(%rdi), %r12d
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_usb_rcvbulkpipe
	movl	36(%rbx), %ecx
	movq	_KAWETH_BUF_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_kaweth_usb_receive@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%rbx, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rdi
	orl	%eax, 4(%rdi)
	movl	32(%rbx), %eax
	movl	%eax, (%rdi)
	movl	%r14d, %esi
	callq	_usb_submit_urb
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_3
## %bb.2:
	movl	$1, (%rbx)
	leaq	16(%rbx), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	callq	_schedule_delayed_work
LBB0_3:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	movl	$0, (%rbx)
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KAWETH_BUF_SIZE,4,2            ## @KAWETH_BUF_SIZE
	.comm	_kaweth_usb_receive,4,2         ## @kaweth_usb_receive
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resubmitting rx_urb %d failed\n"

	.no_dead_strip	_kaweth_resubmit_rx_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kaweth_resubmit_rx_urb
_kaweth_resubmit_rx_urb:                ; @kaweth_resubmit_rx_urb
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	w22, [x0, #40]
	mov	x0, x22
	mov	w1, #1
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w3, [x19, #36]
Lloh0:
	adrp	x8, _KAWETH_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KAWETH_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _kaweth_usb_receive@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kaweth_usb_receive@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x6, x19
	bl	_usb_fill_bulk_urb
Lloh6:
	adrp	x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x0, [x19, #24]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	ldr	w9, [x19, #32]
	stp	w9, w8, [x0]
	mov	x1, x20
	bl	_usb_submit_urb
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #1
	mov	x0, x19
	str	w8, [x0], #16
Lloh12:
	adrp	x8, _HZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #2
	bl	_schedule_delayed_work
LBB0_3:
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	str	wzr, [x19]
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_KAWETH_BUF_SIZE,4,2            ; @KAWETH_BUF_SIZE
	.comm	_kaweth_usb_receive,4,2         ; @kaweth_usb_receive
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resubmitting rx_urb %d failed\n"

	.no_dead_strip	_kaweth_resubmit_rx_urb
.subsections_via_symbols
