	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9015_set_remote_config
_af9015_set_remote_config:              ## @af9015_set_remote_config
	.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, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	8(%rdi), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movq	_dvb_usb_af9015_remote@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_af9015_rc_setup_modparam@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_af9015_rc_setup_match
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	_af9015_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_af9015_rc_setup_hashes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_af9015_rc_setup_match
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movl	%r15d, %eax
	shll	$16, %eax
	addl	%eax, %r12d
	movq	_af9015_rc_setup_usbids@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_af9015_rc_setup_match
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	_USB_VID_AFATECH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_7
## %bb.4:
	leaq	-58(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_memset
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	$10, %ecx
	callq	_usb_string
	cmpl	$4805453, -58(%rbp)             ## imm = 0x49534D
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rax
LBB0_7:
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	movq	_RC_MAP_EMPTY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_AF9015_REMOTE_MSI_DIGIVOX_MINI_II_V3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_af9015_rc_setup_match
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_dvb_usb_af9015_remote,4,2      ## @dvb_usb_af9015_remote
	.comm	_af9015_rc_setup_modparam,4,2   ## @af9015_rc_setup_modparam
	.comm	_af9015_config,4,2              ## @af9015_config
	.comm	_af9015_rc_setup_hashes,4,2     ## @af9015_rc_setup_hashes
	.comm	_af9015_rc_setup_usbids,4,2     ## @af9015_rc_setup_usbids
	.comm	_USB_VID_AFATECH,4,2            ## @USB_VID_AFATECH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSI"

	.comm	_AF9015_REMOTE_MSI_DIGIVOX_MINI_II_V3,4,2 ## @AF9015_REMOTE_MSI_DIGIVOX_MINI_II_V3
	.comm	_RC_MAP_EMPTY,8,3               ## @RC_MAP_EMPTY
	.no_dead_strip	_af9015_set_remote_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9015_set_remote_config
_af9015_set_remote_config:              ; @af9015_set_remote_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x0, #8]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	mov	x22, x0
Lloh3:
	adrp	x8, _dvb_usb_af9015_remote@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dvb_usb_af9015_remote@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x23, _af9015_rc_setup_modparam@GOTPAGE
Lloh7:
	ldr	x23, [x23, _af9015_rc_setup_modparam@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_af9015_rc_setup_match
	str	x0, [x19]
	cbnz	x0, LBB0_7
; %bb.1:
Lloh8:
	adrp	x8, _af9015_config@GOTPAGE
Lloh9:
	ldr	x8, [x8, _af9015_config@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _af9015_rc_setup_hashes@GOTPAGE
Lloh12:
	ldr	x8, [x8, _af9015_rc_setup_hashes@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_af9015_rc_setup_match
	str	x0, [x19]
	cbnz	x0, LBB0_7
; %bb.2:
	add	w0, w22, w21, lsl #16
Lloh14:
	adrp	x8, _af9015_rc_setup_usbids@GOTPAGE
Lloh15:
	ldr	x8, [x8, _af9015_rc_setup_usbids@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_af9015_rc_setup_match
	str	x0, [x19]
Lloh17:
	adrp	x8, _USB_VID_AFATECH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_VID_AFATECH@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w21, w8, #0, eq
	b.ne	LBB0_5
; %bb.3:
	add	x0, sp, #14
	mov	w1, #0
	mov	w2, #10
	bl	_memset
	ldr	w1, [x20]
	add	x2, sp, #14
	mov	x0, x20
	mov	w3, #10
	bl	_usb_string
	ldur	w8, [sp, #14]
	sub	w8, w8, #1173, lsl #12          ; =4804608
	cmp	w8, #845
	b.eq	LBB0_9
; %bb.4:
	ldr	x0, [x19]
LBB0_5:
	cbnz	x0, LBB0_7
LBB0_6:
Lloh20:
	adrp	x8, _RC_MAP_EMPTY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RC_MAP_EMPTY@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh26:
	adrp	x8, _AF9015_REMOTE_MSI_DIGIVOX_MINI_II_V3@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AF9015_REMOTE_MSI_DIGIVOX_MINI_II_V3@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_af9015_rc_setup_match
	str	x0, [x19]
	cbnz	x0, LBB0_7
	b	LBB0_6
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_dvb_usb_af9015_remote,4,2      ; @dvb_usb_af9015_remote
	.comm	_af9015_rc_setup_modparam,4,2   ; @af9015_rc_setup_modparam
	.comm	_af9015_config,4,2              ; @af9015_config
	.comm	_af9015_rc_setup_hashes,4,2     ; @af9015_rc_setup_hashes
	.comm	_af9015_rc_setup_usbids,4,2     ; @af9015_rc_setup_usbids
	.comm	_USB_VID_AFATECH,4,2            ; @USB_VID_AFATECH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSI"

	.comm	_AF9015_REMOTE_MSI_DIGIVOX_MINI_II_V3,4,2 ; @AF9015_REMOTE_MSI_DIGIVOX_MINI_II_V3
	.comm	_RC_MAP_EMPTY,8,3               ; @RC_MAP_EMPTY
	.no_dead_strip	_af9015_set_remote_config
.subsections_via_symbols
