	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lme_firmware_switch
_lme_firmware_switch:                   ## @lme_firmware_switch
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	8(%rdi), %r13
	movq	$0, -48(%rbp)
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	cmpl	$4384, %eax                     ## imm = 0x1120
	je	LBB0_7
## %bb.1:
	cmpl	$8944, %eax                     ## imm = 0x22F0
	je	LBB0_13
## %bb.2:
	cmpl	$4386, %eax                     ## imm = 0x1122
	jne	LBB0_15
## %bb.3:
	cmpl	$130, (%r13)
	je	LBB0_5
## %bb.4:
	movq	_fw_s0194@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_22
LBB0_5:
	movq	_fw_lg@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_18
## %bb.6:
	movq	_TUNER_DEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$130, %eax
	je	LBB0_10
## %bb.9:
	movq	_fw_c_s7395@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_23
LBB0_10:
	movq	_fw_c_lg@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_18
LBB0_11:
	movq	_fw_c_s0194@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	movq	_TUNER_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	jmp	LBB0_24
LBB0_13:
	movq	_fw_c_rs2000@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_TUNER_RS2000@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, (%r13)
	jmp	LBB0_19
LBB0_15:
	movq	_fw_c_s7395@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_19
LBB0_18:
	movl	$130, (%r13)
	jmp	LBB0_19
LBB0_17:
	movl	$129, (%r13)
LBB0_19:
	movq	-48(%rbp), %rdi
	callq	_release_firmware
	testl	%r14d, %r14d
	jle	LBB0_25
## %bb.20:
	andl	$1, %r14d
	je	LBB0_25
## %bb.21:
	movl	(%r13), %eax
	movq	_dvb_usb_lme2510_firmware@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_info
	movq	%r15, %rdi
	callq	_lme_coldreset
	xorl	%r12d, %r12d
	jmp	LBB0_25
LBB0_22:
	movl	$129, (%r13)
	jmp	LBB0_24
LBB0_23:
	movl	$128, (%r13)
LBB0_24:
	movq	-48(%rbp), %rdi
	callq	_release_firmware
LBB0_25:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fw_s0194,8,3                   ## @fw_s0194
	.comm	_fw_lg,8,3                      ## @fw_lg
	.comm	_TUNER_DEFAULT,8,3              ## @TUNER_DEFAULT
	.comm	_fw_c_s7395,8,3                 ## @fw_c_s7395
	.comm	_fw_c_lg,8,3                    ## @fw_c_lg
	.comm	_fw_c_s0194,8,3                 ## @fw_c_s0194
	.comm	_fw_c_rs2000,8,3                ## @fw_c_rs2000
	.comm	_TUNER_RS2000,4,2               ## @TUNER_RS2000
	.comm	_dvb_usb_lme2510_firmware,4,2   ## @dvb_usb_lme2510_firmware
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FRM Changing to %s firmware"

	.no_dead_strip	_lme_firmware_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lme_firmware_switch
_lme_firmware_switch:                   ; @lme_firmware_switch
	.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	x20, x1
	mov	x19, x0
	ldp	x22, x23, [x0]
	str	xzr, [sp, #8]
	ldr	w0, [x22, #4]
	bl	_le16_to_cpu
	mov	w8, #4384
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.1:
	mov	w8, #8944
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.2:
	mov	w8, #4386
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.3:
	ldr	w8, [x23]
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _fw_s0194@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fw_s0194@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x22
	bl	_request_firmware
	cbz	w0, LBB0_21
LBB0_5:
Lloh3:
	adrp	x8, _fw_lg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fw_lg@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x22
	bl	_request_firmware
	cbz	w0, LBB0_15
; %bb.6:
Lloh6:
	adrp	x8, _TUNER_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TUNER_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	w8, [x23]
	b	LBB0_18
LBB0_7:
	ldr	w8, [x23]
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _fw_c_s7395@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fw_c_s7395@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x22
	bl	_request_firmware
	cbz	w0, LBB0_22
LBB0_10:
Lloh12:
	adrp	x8, _fw_c_lg@GOTPAGE
Lloh13:
	ldr	x8, [x8, _fw_c_lg@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x22
	bl	_request_firmware
	cbz	w0, LBB0_15
LBB0_11:
Lloh15:
	adrp	x8, _fw_c_s0194@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fw_c_s0194@GOTPAGEOFF]
Lloh17:
	ldr	x21, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x22
	bl	_request_firmware
	cbz	w0, LBB0_16
; %bb.12:
Lloh18:
	adrp	x8, _TUNER_DEFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TUNER_DEFAULT@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	w8, [x23]
	b	LBB0_24
LBB0_13:
Lloh21:
	adrp	x8, _fw_c_rs2000@GOTPAGE
Lloh22:
	ldr	x8, [x8, _fw_c_rs2000@GOTPAGEOFF]
Lloh23:
	ldr	x21, [x8]
Lloh24:
	adrp	x8, _TUNER_RS2000@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TUNER_RS2000@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	b	LBB0_17
LBB0_14:
Lloh27:
	adrp	x8, _fw_c_s7395@GOTPAGE
Lloh28:
	ldr	x8, [x8, _fw_c_s7395@GOTPAGEOFF]
Lloh29:
	ldr	x21, [x8]
	b	LBB0_18
LBB0_15:
	mov	w8, #130
	b	LBB0_17
LBB0_16:
	mov	w8, #129
LBB0_17:
	str	w8, [x23]
LBB0_18:
	ldr	x0, [sp, #8]
	bl	_release_firmware
	cmp	w20, #1
	b.lt	LBB0_25
; %bb.19:
	tbz	w20, #0, LBB0_25
; %bb.20:
	ldr	w8, [x23]
Lloh30:
	adrp	x9, _dvb_usb_lme2510_firmware@GOTPAGE
Lloh31:
	ldr	x9, [x9, _dvb_usb_lme2510_firmware@GOTPAGEOFF]
Lloh32:
	str	w8, [x9]
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_info
	mov	x0, x19
	bl	_lme_coldreset
	mov	x21, #0
	b	LBB0_25
LBB0_21:
	mov	w8, #129
	b	LBB0_23
LBB0_22:
	mov	w8, #128
LBB0_23:
	str	w8, [x23]
LBB0_24:
	ldr	x0, [sp, #8]
	bl	_release_firmware
LBB0_25:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_fw_s0194,8,3                   ; @fw_s0194
	.comm	_fw_lg,8,3                      ; @fw_lg
	.comm	_TUNER_DEFAULT,8,3              ; @TUNER_DEFAULT
	.comm	_fw_c_s7395,8,3                 ; @fw_c_s7395
	.comm	_fw_c_lg,8,3                    ; @fw_c_lg
	.comm	_fw_c_s0194,8,3                 ; @fw_c_s0194
	.comm	_fw_c_rs2000,8,3                ; @fw_c_rs2000
	.comm	_TUNER_RS2000,4,2               ; @TUNER_RS2000
	.comm	_dvb_usb_lme2510_firmware,4,2   ; @dvb_usb_lme2510_firmware
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FRM Changing to %s firmware"

	.no_dead_strip	_lme_firmware_switch
.subsections_via_symbols
