	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_send_stream_packet
_ioctl_send_stream_packet:              ## @ioctl_send_stream_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rsi), %ecx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movl	$1024, %eax                     ## imm = 0x400
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	cmpl	%eax, 4(%rsi)
	jle	LBB0_4
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	%rdi, %r14
	movl	8(%rbx), %edi
	cmpl	$3, %edi
	jg	LBB0_7
## %bb.5:
	movl	12(%rbx), %esi
	cmpl	$63, %esi
	jg	LBB0_7
## %bb.6:
	movl	16(%rbx), %edx
	cmpl	$16, %edx
	jl	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	_fw_stream_packet_destination_id
	movq	_TCODE_STREAM_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -24(%rbp)
	movl	4(%rbx), %ecx
	movl	%ecx, -40(%rbp)
	movl	28(%rbx), %ecx
	movl	%ecx, -28(%rbp)
	movl	24(%rbx), %ecx
	movl	%ecx, -32(%rbp)
	movl	20(%rbx), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%rbx), %ecx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_init_request
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TCODE_STREAM_DATA,4,2          ## @TCODE_STREAM_DATA
	.no_dead_strip	_ioctl_send_stream_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_send_stream_packet
_ioctl_send_stream_packet:              ; @ioctl_send_stream_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	w8, [x1]
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	w9, [x1, #4]
	mov	w10, #1024
	lsl	w8, w10, w8
	cmp	w9, w8
	b.le	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	x19, x0
	ldr	w0, [x20, #8]
	cmp	w0, #3
	b.gt	LBB0_6
; %bb.4:
	ldr	w1, [x20, #12]
	cmp	w1, #63
	b.gt	LBB0_6
; %bb.5:
	ldr	w2, [x20, #16]
	cmp	w2, #16
	b.lt	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	_fw_stream_packet_destination_id
	mov	x2, x0
Lloh4:
	adrp	x8, _TCODE_STREAM_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TCODE_STREAM_DATA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldp	w3, w9, [x20]
	str	w9, [sp, #8]
	ldr	w9, [x20, #28]
	stp	w9, w8, [sp, #20]
	ldur	d0, [x20, #20]
	stur	d0, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_init_request
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TCODE_STREAM_DATA,4,2          ; @TCODE_STREAM_DATA
	.no_dead_strip	_ioctl_send_stream_packet
.subsections_via_symbols
