	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dibusb2_0_streaming_ctrl       ## -- Begin function dibusb2_0_streaming_ctrl
	.p2align	4, 0x90
_dibusb2_0_streaming_ctrl:              ## @dibusb2_0_streaming_ctrl
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_dibusb_streaming_ctrl
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	_DIBUSB_REQ_SET_STREAMING_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	$0, 4(%r12)
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_dvb_usb_generic_write
	testl	%eax, %eax
	js	LBB0_9
LBB0_5:
	movq	_DIBUSB_REQ_SET_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.7:
	movq	_DIBUSB_IOCTL_CMD_DISABLE_STREAM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_DIBUSB_IOCTL_CMD_ENABLE_STREAM@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	$3, %edx
	callq	_dvb_usb_generic_write
LBB0_9:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DIBUSB_REQ_SET_STREAMING_MODE,4,2 ## @DIBUSB_REQ_SET_STREAMING_MODE
	.comm	_DIBUSB_REQ_SET_IOCTL,4,2       ## @DIBUSB_REQ_SET_IOCTL
	.comm	_DIBUSB_IOCTL_CMD_ENABLE_STREAM,4,2 ## @DIBUSB_IOCTL_CMD_ENABLE_STREAM
	.comm	_DIBUSB_IOCTL_CMD_DISABLE_STREAM,4,2 ## @DIBUSB_IOCTL_CMD_DISABLE_STREAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dibusb2_0_streaming_ctrl       ; -- Begin function dibusb2_0_streaming_ctrl
	.p2align	2
_dibusb2_0_streaming_ctrl:              ; @dibusb2_0_streaming_ctrl
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #3
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_dibusb_streaming_ctrl
	tbnz	w0, #31, LBB0_5
; %bb.2:
	cbz	w21, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _DIBUSB_REQ_SET_STREAMING_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIBUSB_REQ_SET_STREAMING_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, wzr, [x19]
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #2
	bl	_dvb_usb_generic_write
	tbnz	w0, #31, LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _DIBUSB_REQ_SET_IOCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIBUSB_REQ_SET_IOCTL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DIBUSB_IOCTL_CMD_ENABLE_STREAM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DIBUSB_IOCTL_CMD_ENABLE_STREAM@GOTPAGEOFF]
Lloh11:
	adrp	x10, _DIBUSB_IOCTL_CMD_DISABLE_STREAM@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DIBUSB_IOCTL_CMD_DISABLE_STREAM@GOTPAGEOFF]
	str	w8, [x19]
	cmp	w21, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #3
	bl	_dvb_usb_generic_write
LBB0_5:
	mov	x22, x0
	mov	x0, x19
	bl	_kfree
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DIBUSB_REQ_SET_STREAMING_MODE,4,2 ; @DIBUSB_REQ_SET_STREAMING_MODE
	.comm	_DIBUSB_REQ_SET_IOCTL,4,2       ; @DIBUSB_REQ_SET_IOCTL
	.comm	_DIBUSB_IOCTL_CMD_ENABLE_STREAM,4,2 ; @DIBUSB_IOCTL_CMD_ENABLE_STREAM
	.comm	_DIBUSB_IOCTL_CMD_DISABLE_STREAM,4,2 ; @DIBUSB_IOCTL_CMD_DISABLE_STREAM
.subsections_via_symbols
