	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_cancel_packet
_ohci_cancel_packet:                    ## @ohci_cancel_packet
	.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	%rsi, %r12
	callq	_fw_ohci
	movq	%rax, %r15
	movq	32(%r12), %r13
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_tasklet_disable
	cmpl	$0, (%r12)
	jne	LBB0_4
## %bb.1:
	movl	28(%r12), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	movl	24(%r12), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
LBB0_3:
	movl	16(%r12), %edx
	movl	20(%r12), %esi
	movl	$84, %edi
	movl	$32, %ecx
	callq	_log_ar_at_event
	movq	$0, (%r13)
	movq	_RCODE_CANCELLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%r12)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	*8(%r12)
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_tasklet_enable
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_RCODE_CANCELLED,4,2            ## @RCODE_CANCELLED
	.no_dead_strip	_ohci_cancel_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ohci_cancel_packet
_ohci_cancel_packet:                    ; @ohci_cancel_packet
	.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, x1
	bl	_fw_ohci
	mov	x21, x0
	ldr	x22, [x20, #32]
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_tasklet_disable
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	neg	w20, w23
	b	LBB0_5
LBB0_2:
	ldr	w1, [x20, #28]
	cbz	w1, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	ldr	w2, [x20, #24]
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_dma_unmap_single
LBB0_4:
	ldp	w2, w1, [x20, #16]
	mov	w0, #84
	mov	w3, #32
	bl	_log_ar_at_event
	str	xzr, [x22]
Lloh6:
	adrp	x8, _RCODE_CANCELLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RCODE_CANCELLED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	str	w2, [x20]
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_tasklet_enable
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_RCODE_CANCELLED,4,2            ; @RCODE_CANCELLED
	.no_dead_strip	_ohci_cancel_packet
.subsections_via_symbols
