	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function peak_usb_restart
_peak_usb_restart:                      ## @peak_usb_restart
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	_PCAN_USB_MAX_CMD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r12
	movq	(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_usb_free_urb
	jmp	LBB0_9
LBB0_5:
	movq	%r15, %rdi
	callq	_peak_usb_restart_complete
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_usb_free_urb
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCAN_USB_MAX_CMD_LEN,4,2       ## @PCAN_USB_MAX_CMD_LEN
	.no_dead_strip	_peak_usb_restart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function peak_usb_restart
_peak_usb_restart:                      ; @peak_usb_restart
	.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, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x21, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh2:
	adrp	x8, _PCAN_USB_MAX_CMD_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCAN_USB_MAX_CMD_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_usb_free_urb
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_peak_usb_restart_complete
	mov	w20, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_usb_free_urb
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCAN_USB_MAX_CMD_LEN,4,2       ; @PCAN_USB_MAX_CMD_LEN
	.no_dead_strip	_peak_usb_restart
.subsections_via_symbols
