	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_allocate_iso_context
_ohci_allocate_iso_context:             ## @ohci_allocate_iso_context
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r13d
	callq	_fw_ohci
	movq	%rax, %rbx
	movq	%rax, %rsi
	movq	$-1, -88(%rbp)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movq	_FW_ISO_CONTEXT_TRANSMIT@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	leaq	40(%rbx), %rdx
	leaq	-88(%rbp), %r15
	movq	_handle_it_packet@GOTPCREL(%rip), %rcx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_2:
	cmpq	$0, 24(%rsi)
	jne	LBB0_3
## %bb.4:
	movq	_handle_ir_packet_per_buffer@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_handle_ir_dualbuffer_packet@GOTPCREL(%rip), %rcx
LBB0_5:
	leaq	8(%rbx), %r15
	leaq	16(%rbx), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	32(%rbx), %rdx
LBB0_6:
	subl	(%rax), %r14d
	movq	(%rdx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	movl	$1, %edx
	movl	%r12d, %ecx
	shlq	%cl, %rdx
	btq	%r12, %rax
	jae	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.10:
	bsfl	%esi, %r12d
	notq	%rdx
	movl	$1, %edi
	movl	%r12d, %ecx
	shll	%cl, %edi
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	andq	%rdx, %rax
	movq	%rax, (%r15)
	btrl	%r12d, %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, (%rax)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_FW_ISO_CONTEXT_TRANSMIT@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_12
## %bb.11:
	movl	%r12d, %edi
	callq	_OHCI1394_IsoXmitContextBase
	jmp	LBB0_13
LBB0_8:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_9
LBB0_12:
	movl	%r12d, %edi
	callq	_OHCI1394_IsoRcvContextBase
LBB0_13:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %eax
	leaq	(%rax,%rax,2), %r15
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	leaq	(,%r15,8), %r12
	addq	%r13, %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	$0, 16(%r13,%r15,8)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___get_free_page
	movq	%rax, (%r13,%r15,8)
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	leaq	12(,%r15,8), %rdi
	addq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	callq	_context_init
	testl	%eax, %eax
	js	LBB0_15
## %bb.17:
	leaq	8(,%r15,8), %rax
	addq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%eax, %r14d
	movq	(%r12), %rdi
	callq	_free_page
LBB0_16:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, (%rax)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %edi
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FW_ISO_CONTEXT_TRANSMIT,4,2    ## @FW_ISO_CONTEXT_TRANSMIT
	.comm	_handle_it_packet,4,2           ## @handle_it_packet
	.comm	_handle_ir_dualbuffer_packet,4,2 ## @handle_ir_dualbuffer_packet
	.comm	_handle_ir_packet_per_buffer,4,2 ## @handle_ir_packet_per_buffer
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_ohci_allocate_iso_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ohci_allocate_iso_context
_ohci_allocate_iso_context:             ; @ohci_allocate_iso_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x21, x1
	bl	_fw_ohci
	mov	x19, x0
	mov	x8, #-1
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	adrp	x24, _FW_ISO_CONTEXT_TRANSMIT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FW_ISO_CONTEXT_TRANSMIT@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w9, w21
	b.ne	LBB0_2
; %bb.1:
	add	x9, x19, #40
	add	x27, sp, #8
Lloh4:
	adrp	x10, _handle_it_packet@GOTPAGE
Lloh5:
	ldr	x10, [x10, _handle_it_packet@GOTPAGEOFF]
	mov	x25, x19
	b	LBB0_3
LBB0_2:
	add	x27, x19, #8
	add	x25, x19, #16
	add	x9, x19, #32
	ldr	x10, [x19, #24]
Lloh6:
	adrp	x11, _handle_ir_dualbuffer_packet@GOTPAGE
Lloh7:
	ldr	x11, [x11, _handle_ir_dualbuffer_packet@GOTPAGEOFF]
Lloh8:
	adrp	x12, _handle_ir_packet_per_buffer@GOTPAGE
Lloh9:
	ldr	x12, [x12, _handle_ir_packet_per_buffer@GOTPAGEOFF]
	cmp	x10, #0
	csel	x10, x12, x11, eq
LBB0_3:
	ldr	w28, [x8]
	ldr	x26, [x9]
	add	x20, x19, #20
	ldr	w22, [x10]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x27]
	mov	w9, #1
	lsl	x9, x9, x23
	tst	x8, x9
	b.eq	LBB0_7
; %bb.4:
	ldr	w10, [x25]
	cbz	w10, LBB0_7
; %bb.5:
	rbit	w11, w10
	clz	w23, w11
	bic	x8, x8, x9
	str	x8, [x27]
	mov	w8, #1
	lsl	w27, w8, w23
	bic	w8, w10, w27
	str	w8, [x25]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x24]
	mov	x0, x23
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.6:
	bl	_OHCI1394_IsoXmitContextBase
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_8:
	bl	_OHCI1394_IsoRcvContextBase
LBB0_9:
	mov	x24, x0
	mov	w8, #24
	umaddl	x21, w23, w8, x26
	mov	x0, x21
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	xzr, [x21, #16]
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	___get_free_page
	str	x0, [x21]
	cbz	x0, LBB0_12
; %bb.10:
	mov	w8, #24
	madd	x8, x23, x8, x26
	add	x0, x8, #12
	mov	x1, x19
	mov	x2, x24
	mov	x3, x22
	bl	_context_init
	tbnz	w0, #31, LBB0_13
; %bb.11:
	mov	w8, #24
	madd	x8, x23, x8, x26
	add	x0, x8, #8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	neg	w19, w28
	b	LBB0_14
LBB0_13:
	mov	x19, x0
	ldr	x0, [x21]
	bl	_free_page
LBB0_14:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x25]
	orr	w8, w8, w27
	str	w8, [x25]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FW_ISO_CONTEXT_TRANSMIT,4,2    ; @FW_ISO_CONTEXT_TRANSMIT
	.comm	_handle_it_packet,4,2           ; @handle_it_packet
	.comm	_handle_ir_dualbuffer_packet,4,2 ; @handle_ir_dualbuffer_packet
	.comm	_handle_ir_packet_per_buffer,4,2 ; @handle_ir_packet_per_buffer
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_ohci_allocate_iso_context
.subsections_via_symbols
