	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lme2510_int_service
_lme2510_int_service:                   ## @lme2510_int_service
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r12
	leaq	L_.str(%rip), %rdi
	callq	_info
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rc_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	8(%r12), %edi
	movl	12(%r12), %esi
	movl	$4, %edx
	callq	_usb_make_path
	movl	12(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r15)
	movl	12(%r12), %eax
	movl	%eax, 24(%r15)
	movq	_RC_MAP_LME2510@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%r15)
	movl	8(%r12), %edi
	movq	%r15, %rsi
	addq	$16, %rsi
	callq	_usb_to_input_id
	movq	%r15, %rdi
	callq	_rc_register_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_rc_free_device
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	%r15, (%r12)
	movq	%r14, %rdi
	callq	_lme2510_int_read
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_rc_unregister_device
	leaq	L_.str.4(%rip), %rdi
	callq	_info
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STA Configuring Remote"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"/ir0"

L_.str.2:                               ## @.str.2
	.asciz	"LME2510 Remote Control"

	.comm	_RC_MAP_LME2510,4,2             ## @RC_MAP_LME2510
L_.str.3:                               ## @.str.3
	.asciz	"LME 2510"

L_.str.4:                               ## @.str.4
	.asciz	"INT Unable to start Interupt Service"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_lme2510_int_service
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lme2510_int_service
_lme2510_int_service:                   ; @lme2510_int_service
	.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	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
	bl	_rc_allocate_device
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldp	w0, w1, [x22, #8]
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x22, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strlcat
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, _RC_MAP_LME2510@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RC_MAP_LME2510@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldp	w0, w10, [x22, #8]
	stp	w9, w10, [x19, #20]
Lloh9:
	adrp	x9, l_.str.3@PAGE
Lloh10:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x8, x9, [x19]
	add	x1, x19, #16
	bl	_usb_to_input_id
	mov	x0, x19
	bl	_rc_register_device
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_rc_free_device
	b	LBB0_8
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	str	x19, [x22]
	mov	x0, x20
	bl	_lme2510_int_read
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_rc_unregister_device
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_info
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STA Configuring Remote"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"/ir0"

l_.str.2:                               ; @.str.2
	.asciz	"LME2510 Remote Control"

	.comm	_RC_MAP_LME2510,4,2             ; @RC_MAP_LME2510
l_.str.3:                               ; @.str.3
	.asciz	"LME 2510"

l_.str.4:                               ; @.str.4
	.asciz	"INT Unable to start Interupt Service"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_lme2510_int_service
.subsections_via_symbols
