	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_img_ir_probe_raw               ## -- Begin function img_ir_probe_raw
	.p2align	4, 0x90
_img_ir_probe_raw:                      ## @img_ir_probe_raw
	.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, %r15
	addq	$16, %rdi
	movq	_img_ir_echo_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_RC_DRIVER_IR_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rc_allocate_device
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	_RC_MAP_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_rc_register_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_rc_free_device
	movq	$0, 8(%r15)
	movl	%r12d, %r14d
	jmp	LBB0_4
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_img_ir_echo_timer,4,2          ## @img_ir_echo_timer
	.comm	_RC_DRIVER_IR_RAW,4,2           ## @RC_DRIVER_IR_RAW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate raw input device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RC_MAP_EMPTY,4,2               ## @RC_MAP_EMPTY
L_.str.1:                               ## @.str.1
	.asciz	"IMG Infrared Decoder Raw"

L_.str.2:                               ## @.str.2
	.asciz	"failed to register raw IR input device\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_img_ir_probe_raw               ; -- Begin function img_ir_probe_raw
	.p2align	2
_img_ir_probe_raw:                      ; @img_ir_probe_raw
	.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
	add	x0, x0, #16
Lloh0:
	adrp	x8, _img_ir_echo_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _img_ir_echo_timer@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
Lloh3:
	adrp	x8, _RC_DRIVER_IR_RAW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_rc_allocate_device
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _RC_MAP_EMPTY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RC_MAP_EMPTY@GOTPAGEOFF]
	str	x19, [x0, #16]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #8]
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0]
	bl	_rc_register_device
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_rc_free_device
	str	xzr, [x19, #8]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_img_ir_echo_timer,4,2          ; @img_ir_echo_timer
	.comm	_RC_DRIVER_IR_RAW,4,2           ; @RC_DRIVER_IR_RAW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate raw input device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RC_MAP_EMPTY,4,2               ; @RC_MAP_EMPTY
l_.str.1:                               ; @.str.1
	.asciz	"IMG Infrared Decoder Raw"

l_.str.2:                               ; @.str.2
	.asciz	"failed to register raw IR input device\n"

.subsections_via_symbols
