	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function technisat_usb2_set_led
_technisat_usb2_set_led:                ## @technisat_usb2_set_led
	.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, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_SET_GREEN_LED_VENDOR_REQUEST@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SET_RED_LED_VENDOR_REQUEST@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	cmpl	$129, %edx
	je	LBB0_5
## %bb.4:
	movq	_disable_led_control@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_16
LBB0_5:
	movl	$1, %eax
	cmpl	$128, %edx
	je	LBB0_6
## %bb.7:
	cmpl	$130, %edx
	jne	LBB0_9
## %bb.8:
	testl	%r12d, %r12d
	movl	$130, 4(%rbx)
	movl	$255, %eax
	movl	$2, %ecx
	cmovel	%eax, %ecx
	movl	$50, %eax
	movl	$10, %edx
	cmovel	%eax, %edx
	movl	%ecx, 8(%rbx)
	movl	%edx, 12(%rbx)
	movl	%edx, 16(%rbx)
	movl	$1, %ecx
	movl	$5, %eax
	jmp	LBB0_10
LBB0_6:
	movl	$130, %ecx
	jmp	LBB0_10
LBB0_9:
	movl	$128, %ecx
LBB0_10:
	movl	%ecx, (%rbx,%rax,4)
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_11
## %bb.12:
	movl	4(%r14), %r15d
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	testl	%r12d, %r12d
	jne	LBB0_13
## %bb.14:
	movq	_SET_GREEN_LED_VENDOR_REQUEST@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_11:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_13:
	movq	_SET_RED_LED_VENDOR_REQUEST@GOTPCREL(%rip), %rcx
LBB0_15:
	movl	(%rcx), %edx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rsi
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	subq	$8, %rsp
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$8
	pushq	%rbx
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_RED_LED_VENDOR_REQUEST,4,2 ## @SET_RED_LED_VENDOR_REQUEST
	.comm	_SET_GREEN_LED_VENDOR_REQUEST,4,2 ## @SET_GREEN_LED_VENDOR_REQUEST
	.comm	_disable_led_control,8,3        ## @disable_led_control
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.no_dead_strip	_technisat_usb2_set_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function technisat_usb2_set_led
_technisat_usb2_set_led:                ; @technisat_usb2_set_led
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x23, _SET_RED_LED_VENDOR_REQUEST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SET_RED_LED_VENDOR_REQUEST@GOTPAGEOFF]
Lloh2:
	adrp	x24, _SET_GREEN_LED_VENDOR_REQUEST@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SET_GREEN_LED_VENDOR_REQUEST@GOTPAGEOFF]
	ldr	x20, [x8]
	cmp	w1, #0
	csel	x8, x24, x23, eq
	ldr	w8, [x8]
	str	w8, [x20]
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _disable_led_control@GOTPAGE
Lloh5:
	ldr	x8, [x8, _disable_led_control@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_12
LBB0_3:
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w2, #130
	b.ne	LBB0_7
; %bb.5:
	mov	w8, #130
	mov	w9, #2
	mov	w10, #255
	cmp	w21, #0
	csel	w9, w10, w9, eq
	mov	w10, #10
	mov	w11, #50
	stp	w8, w9, [x20, #4]
	csel	w8, w11, w10, eq
	stp	w8, w8, [x20, #12]
	mov	w8, #1
	mov	w9, #5
	b	LBB0_9
LBB0_6:
	mov	w8, #130
	b	LBB0_8
LBB0_7:
	mov	w8, #128
LBB0_8:
	mov	w9, #1
LBB0_9:
	str	w8, [x20, x9, lsl #2]
	mov	x0, x19
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_11
; %bb.10:
	ldr	w22, [x19, #4]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	cmp	w21, #0
	csel	x8, x24, x23, eq
Lloh7:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldr	w2, [x8]
Lloh9:
	ldr	w8, [x9]
Lloh10:
	adrp	x9, _USB_DIR_OUT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _USB_DIR_OUT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x22
	mov	w4, #0
	mov	w5, #0
	mov	x6, x20
	mov	w7, #8
	bl	_usb_control_msg
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	b	LBB0_12
LBB0_11:
Lloh13:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_RED_LED_VENDOR_REQUEST,4,2 ; @SET_RED_LED_VENDOR_REQUEST
	.comm	_SET_GREEN_LED_VENDOR_REQUEST,4,2 ; @SET_GREEN_LED_VENDOR_REQUEST
	.comm	_disable_led_control,8,3        ; @disable_led_control
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.no_dead_strip	_technisat_usb2_set_led
.subsections_via_symbols
