	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_medion_keymap
_get_medion_keymap:                     ## @get_medion_keymap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_interface_to_usbdev
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.2:
	movq	16(%r15), %rax
	movq	_USB_CONFIG_ATT_WAKEUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	_RC_MAP_MEDION_X10_OR2X@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_12
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_12:
	movq	_RC_MAP_MEDION_X10@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_RC_MAP_MEDION_X10_DIGITAINER@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_CONFIG_ATT_WAKEUP,4,2      ## @USB_CONFIG_ATT_WAKEUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X10 Wireless Technology Inc"

L_.str.1:                               ## @.str.1
	.asciz	"USB Receiver"

	.comm	_RC_MAP_MEDION_X10_DIGITAINER,8,3 ## @RC_MAP_MEDION_X10_DIGITAINER
L_.str.2:                               ## @.str.2
	.asciz	"X10 WTI"

L_.str.3:                               ## @.str.3
	.asciz	"RF receiver"

	.comm	_RC_MAP_MEDION_X10_OR2X,8,3     ## @RC_MAP_MEDION_X10_OR2X
	.comm	_RC_MAP_MEDION_X10,8,3          ## @RC_MAP_MEDION_X10
L_.str.4:                               ## @.str.4
	.asciz	"Unknown Medion X10 receiver, using default ati_remote Medion keymap\n"

	.no_dead_strip	_get_medion_keymap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_medion_keymap
_get_medion_keymap:                     ; @get_medion_keymap
	.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	x19, x0
	bl	_interface_to_usbdev
	mov	x20, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _USB_CONFIG_ATT_WAKEUP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB_CONFIG_ATT_WAKEUP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w21, w9, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w21, LBB0_8
; %bb.3:
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
LBB0_5:
	ldr	x0, [x20, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	x0, [x20]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_10
; %bb.7:
Lloh11:
	adrp	x8, _RC_MAP_MEDION_X10_OR2X@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RC_MAP_MEDION_X10_OR2X@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x0, [x20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_11
LBB0_10:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_11:
Lloh17:
	adrp	x8, _RC_MAP_MEDION_X10@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RC_MAP_MEDION_X10@GOTPAGEOFF]
LBB0_12:
	ldr	x0, [x8]
	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
LBB0_13:
Lloh19:
	adrp	x8, _RC_MAP_MEDION_X10_DIGITAINER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RC_MAP_MEDION_X10_DIGITAINER@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_CONFIG_ATT_WAKEUP,4,2      ; @USB_CONFIG_ATT_WAKEUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X10 Wireless Technology Inc"

l_.str.1:                               ; @.str.1
	.asciz	"USB Receiver"

	.comm	_RC_MAP_MEDION_X10_DIGITAINER,8,3 ; @RC_MAP_MEDION_X10_DIGITAINER
l_.str.2:                               ; @.str.2
	.asciz	"X10 WTI"

l_.str.3:                               ; @.str.3
	.asciz	"RF receiver"

	.comm	_RC_MAP_MEDION_X10_OR2X,8,3     ; @RC_MAP_MEDION_X10_OR2X
	.comm	_RC_MAP_MEDION_X10,8,3          ; @RC_MAP_MEDION_X10
l_.str.4:                               ; @.str.4
	.asciz	"Unknown Medion X10 receiver, using default ati_remote Medion keymap\n"

	.no_dead_strip	_get_medion_keymap
.subsections_via_symbols
