	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_create_iso_context
_ioctl_create_iso_context:              ## @ioctl_create_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_FW_CDEV_ISO_CONTEXT_TRANSMIT@GOTPCREL(%rip), %rax
	movl	$128, %ecx
	xorq	(%rax), %rcx
	movq	_FW_CDEV_ISO_CONTEXT_RECEIVE@GOTPCREL(%rip), %rax
	movl	$130, %edx
	xorq	(%rax), %rdx
	movq	_FW_CDEV_ISO_CONTEXT_RECEIVE_MULTICHANNEL@GOTPCREL(%rip), %rax
	movl	$129, %esi
	xorq	(%rax), %rsi
	orq	%rcx, %rdx
	xorl	%edi, %edi
	orq	%rdx, %rsi
	setne	%dil
	callq	_BUILD_BUG_ON
	movl	(%r13), %esi
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$130, %esi
	je	LBB0_8
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_6
## %bb.3:
	movl	4(%r13), %edx
	movq	_iso_mc_callback@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movl	28(%r13), %eax
	movq	_SCODE_3200@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
	jmp	LBB0_6
LBB0_8:
	movl	8(%r13), %eax
	cmpl	$4, %eax
	jl	LBB0_6
## %bb.9:
	andl	$3, %eax
	jne	LBB0_6
LBB0_5:
	movl	4(%r13), %edx
	cmpl	$64, %edx
	jl	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_iso_callback@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r9d
	movq	32(%r14), %rax
	movl	(%rax), %edi
	movl	8(%r13), %r8d
	movl	28(%r13), %ecx
	movq	%r14, (%rsp)
	callq	_fw_iso_context_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.22:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movq	(%r14), %rax
	movq	_FW_CDEV_VERSION_AUTO_FLUSH_ISO_OVERFLOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_14
## %bb.13:
	movl	$1, (%r15)
LBB0_14:
	leaq	12(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 16(%r14)
	je	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_fw_iso_context_destroy
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_16:
	cmpl	$0, 8(%r14)
	jne	LBB0_20
## %bb.17:
	leaq	40(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_iso_dma_direction
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_fw_iso_buffer_map_dma
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	movl	$1, 8(%r14)
LBB0_20:
	movl	24(%r13), %eax
	movl	%eax, 24(%r14)
	movq	%r15, 16(%r14)
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	$0, 16(%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_18:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_fw_iso_context_destroy
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_CDEV_ISO_CONTEXT_TRANSMIT,8,3 ## @FW_CDEV_ISO_CONTEXT_TRANSMIT
	.comm	_FW_CDEV_ISO_CONTEXT_RECEIVE,8,3 ## @FW_CDEV_ISO_CONTEXT_RECEIVE
	.comm	_FW_CDEV_ISO_CONTEXT_RECEIVE_MULTICHANNEL,8,3 ## @FW_CDEV_ISO_CONTEXT_RECEIVE_MULTICHANNEL
	.comm	_SCODE_3200,4,2                 ## @SCODE_3200
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_iso_callback,4,2               ## @iso_callback
	.comm	_iso_mc_callback,4,2            ## @iso_mc_callback
	.comm	_FW_CDEV_VERSION_AUTO_FLUSH_ISO_OVERFLOW,8,3 ## @FW_CDEV_VERSION_AUTO_FLUSH_ISO_OVERFLOW
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ioctl_create_iso_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_create_iso_context
_ioctl_create_iso_context:              ; @ioctl_create_iso_context
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FW_CDEV_ISO_CONTEXT_TRANSMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_CDEV_ISO_CONTEXT_TRANSMIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #128
Lloh3:
	adrp	x8, _FW_CDEV_ISO_CONTEXT_RECEIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_CDEV_ISO_CONTEXT_RECEIVE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #130
	ccmp	x8, x9, #0, eq
Lloh6:
	adrp	x8, _FW_CDEV_ISO_CONTEXT_RECEIVE_MULTICHANNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_CDEV_ISO_CONTEXT_RECEIVE_MULTICHANNEL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w9, #129
	ccmp	x8, x9, #0, eq
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	w1, [x19]
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_8
; %bb.3:
	ldr	w2, [x19, #4]
Lloh9:
	adrp	x8, _iso_mc_callback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iso_mc_callback@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	ldr	w8, [x19, #28]
Lloh11:
	adrp	x9, _SCODE_3200@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SCODE_3200@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_7
	b	LBB0_8
LBB0_5:
	ldr	w8, [x19, #8]
	cmp	w8, #4
	b.lt	LBB0_8
; %bb.6:
	and	w8, w8, #0x3
	cbnz	w8, LBB0_8
LBB0_7:
	ldr	w2, [x19, #4]
	cmp	w2, #64
	b.lt	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x23
	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
LBB0_11:
Lloh16:
	adrp	x8, _iso_callback@GOTPAGE
Lloh17:
	ldr	x8, [x8, _iso_callback@GOTPAGEOFF]
LBB0_12:
	ldr	w5, [x8]
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	ldr	w3, [x19, #28]
	ldr	w4, [x19, #8]
	mov	x6, x20
	bl	_fw_iso_context_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	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
	b	_PTR_ERR
LBB0_14:
	ldr	x8, [x20]
Lloh18:
	adrp	x9, _FW_CDEV_VERSION_AUTO_FLUSH_ISO_OVERFLOW@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FW_CDEV_VERSION_AUTO_FLUSH_ISO_OVERFLOW@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x21]
LBB0_16:
	add	x22, x20, #12
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x22
	bl	_spin_unlock_irq
	mov	x0, x21
	bl	_fw_iso_context_destroy
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_18:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_21
; %bb.19:
	add	x23, x20, #40
	ldr	x8, [x20, #32]
	ldr	w24, [x8]
	mov	x0, x21
	bl	_iso_dma_direction
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_fw_iso_buffer_map_dma
	tbnz	w0, #31, LBB0_22
; %bb.20:
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_21:
	ldr	w8, [x19, #24]
	str	w8, [x20, #24]
	str	x21, [x20, #16]
	mov	x0, x22
	bl	_spin_unlock_irq
	mov	w23, #0
	str	xzr, [x19, #16]
	b	LBB0_10
LBB0_22:
	mov	x23, x0
	mov	x0, x22
	bl	_spin_unlock_irq
	mov	x0, x21
	bl	_fw_iso_context_destroy
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_CDEV_ISO_CONTEXT_TRANSMIT,8,3 ; @FW_CDEV_ISO_CONTEXT_TRANSMIT
	.comm	_FW_CDEV_ISO_CONTEXT_RECEIVE,8,3 ; @FW_CDEV_ISO_CONTEXT_RECEIVE
	.comm	_FW_CDEV_ISO_CONTEXT_RECEIVE_MULTICHANNEL,8,3 ; @FW_CDEV_ISO_CONTEXT_RECEIVE_MULTICHANNEL
	.comm	_SCODE_3200,4,2                 ; @SCODE_3200
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_iso_callback,4,2               ; @iso_callback
	.comm	_iso_mc_callback,4,2            ; @iso_mc_callback
	.comm	_FW_CDEV_VERSION_AUTO_FLUSH_ISO_OVERFLOW,8,3 ; @FW_CDEV_VERSION_AUTO_FLUSH_ISO_OVERFLOW
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ioctl_create_iso_context
.subsections_via_symbols
