	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imon_probe
_imon_probe:                            ## @imon_probe
	.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	%rdi, %r12
	callq	_interface_to_usbdev
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r13
	cmpl	$0, 8(%r13)
	jle	LBB0_11
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r15
	leaq	(%r15,%r14), %rdi
	callq	_usb_endpoint_is_int_in
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	8(%r13), %rax
	addq	$8, %r14
	cmpq	%rax, %rbx
	jl	LBB0_2
	jmp	LBB0_11
LBB0_4:
	testq	%r15, %r15
	je	LBB0_11
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_devm_kmalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %r13
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	movq	%r12, 24(%r13)
	movl	4(%r15,%r14), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_usb_rcvintpipe
	movq	%r13, %rcx
	addq	$20, %rcx
	movq	_imon_ir_rx@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	(%r15,%r14), %r10d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	$4, %r8d
	pushq	%r10
	pushq	%r13
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movq	_RC_DRIVER_IR_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_devm_rc_allocate_device
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	%rax, %r15
	movl	16(%r13), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_usb_make_path
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movl	16(%r13), %eax
	movl	%eax, 44(%r15)
	movq	%r15, %rsi
	addq	$40, %rsi
	movq	%rbx, %rdi
	callq	_usb_to_input_id
	movq	%r12, 32(%r15)
	movq	_RC_PROTO_BIT_ALL_IR_DECODER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_RC_MAP_IMON_RSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_BIT_DURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r13, 8(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_devm_rc_register_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	movq	%r15, 8(%r13)
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_usb_set_intfdata
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	(%r13), %edi
	callq	_usb_free_urb
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR endpoint missing"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_imon_ir_rx,4,2                 ## @imon_ir_rx
	.comm	_RC_DRIVER_IR_RAW,4,2           ## @RC_DRIVER_IR_RAW
L_.str.1:                               ## @.str.1
	.asciz	"iMON Station"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ## @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_RC_MAP_IMON_RSC,4,2            ## @RC_MAP_IMON_RSC
	.comm	_BIT_DURATION,4,2               ## @BIT_DURATION
	.no_dead_strip	_imon_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imon_probe
_imon_probe:                            ; @imon_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_interface_to_usbdev
	ldr	x20, [x19, #8]
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x21, x0
	mov	x24, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x20]
	add	x0, x25, x24
	bl	_usb_endpoint_is_int_in
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20, #8]
	add	x24, x24, #8
	cmp	x22, x8
	b.lt	LBB0_2
	b	LBB0_11
LBB0_4:
	cbz	x25, LBB0_11
; %bb.5:
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kmalloc
	cbz	x0, LBB0_14
; %bb.6:
	mov	x20, x0
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	w0, [x20]
	cbz	w0, LBB0_14
; %bb.7:
	mov	x22, x0
	str	x19, [x20, #24]
	add	x24, x25, x24
	ldr	w1, [x24, #4]
	mov	x0, x21
	bl	_usb_rcvintpipe
	mov	x2, x0
	add	x3, x20, #20
Lloh2:
	adrp	x8, _imon_ir_rx@GOTPAGE
Lloh3:
	ldr	x8, [x8, _imon_ir_rx@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	ldr	w7, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	w4, #4
	mov	x6, x20
	bl	_usb_fill_int_urb
Lloh5:
	adrp	x8, _RC_DRIVER_IR_RAW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_rc_allocate_device
	cbz	x0, LBB0_15
; %bb.8:
	mov	x22, x0
	ldr	w1, [x20, #16]
	mov	x0, x21
	mov	w2, #4
	bl	_usb_make_path
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh10:
	adrp	x9, _KBUILD_MODNAME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KBUILD_MODNAME@GOTPAGEOFF]
	str	x8, [x22]
Lloh12:
	ldr	w8, [x9]
	ldr	w9, [x20, #16]
	stp	w9, w8, [x22, #44]
	add	x1, x22, #40
	mov	x0, x21
	bl	_usb_to_input_id
Lloh13:
	adrp	x8, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGEOFF]
	str	x19, [x22, #32]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x22, #24]
Lloh16:
	adrp	x8, _RC_MAP_IMON_RSC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RC_MAP_IMON_RSC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _BIT_DURATION@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BIT_DURATION@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #16]
	str	x20, [x22, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_rc_register_device
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.9:
	str	x22, [x20, #8]
	ldr	w0, [x20]
	ldr	w1, [x23]
	bl	_usb_submit_urb
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_usb_set_intfdata
	b	LBB0_13
LBB0_11:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_15:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	ldr	w0, [x20]
	bl	_usb_free_urb
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR endpoint missing"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_imon_ir_rx,4,2                 ; @imon_ir_rx
	.comm	_RC_DRIVER_IR_RAW,4,2           ; @RC_DRIVER_IR_RAW
l_.str.1:                               ; @.str.1
	.asciz	"iMON Station"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ; @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_RC_MAP_IMON_RSC,4,2            ; @RC_MAP_IMON_RSC
	.comm	_BIT_DURATION,4,2               ; @BIT_DURATION
	.no_dead_strip	_imon_probe
.subsections_via_symbols
