	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rc_allocate_device             ## -- Begin function rc_allocate_device
	.p2align	4, 0x90
_rc_allocate_device:                    ## @rc_allocate_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	_RC_DRIVER_IR_RAW_TX@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_ir_getkeycode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_ir_setkeycode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_input_set_drvdata
	movq	_IR_DEFAULT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	leaq	40(%rbx), %rdi
	movq	_ir_timer_keyup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	36(%rbx), %rdi
	movq	_ir_timer_repeat@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
LBB0_4:
	leaq	24(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_rc_dev_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_rc_class@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	callq	_device_initialize
	movl	%r14d, (%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___module_get
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RC_DRIVER_IR_RAW_TX,4,2        ## @RC_DRIVER_IR_RAW_TX
	.comm	_ir_getkeycode,4,2              ## @ir_getkeycode
	.comm	_ir_setkeycode,4,2              ## @ir_setkeycode
	.comm	_IR_DEFAULT_TIMEOUT,4,2         ## @IR_DEFAULT_TIMEOUT
	.comm	_ir_timer_keyup,4,2             ## @ir_timer_keyup
	.comm	_ir_timer_repeat,4,2            ## @ir_timer_repeat
	.comm	_rc_dev_type,4,2                ## @rc_dev_type
	.comm	_rc_class,4,2                   ## @rc_class
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rc_allocate_device             ; -- Begin function rc_allocate_device
	.p2align	2
_rc_allocate_device:                    ; @rc_allocate_device
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _RC_DRIVER_IR_RAW_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW_TX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.2:
	bl	_input_allocate_device
	str	x0, [x19, #48]
	cbz	x0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _ir_getkeycode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ir_getkeycode@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ir_setkeycode@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ir_setkeycode@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	mov	x1, x19
	bl	_input_set_drvdata
Lloh12:
	adrp	x8, _IR_DEFAULT_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IR_DEFAULT_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	add	x0, x19, #40
Lloh15:
	adrp	x8, _ir_timer_keyup@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ir_timer_keyup@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #36
Lloh18:
	adrp	x8, _ir_timer_repeat@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ir_timer_repeat@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #32
	bl	_spin_lock_init
	add	x0, x19, #28
	bl	_spin_lock_init
LBB0_4:
	add	x0, x19, #24
	bl	_mutex_init
Lloh21:
	adrp	x8, _rc_dev_type@GOTPAGE
Lloh22:
	ldr	x8, [x8, _rc_dev_type@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh23:
	adrp	x8, _rc_class@GOTPAGE
Lloh24:
	ldr	x8, [x8, _rc_class@GOTPAGEOFF]
	mov	x0, x19
	str	x8, [x0, #8]!
	bl	_device_initialize
	str	w20, [x19]
Lloh25:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	___module_get
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RC_DRIVER_IR_RAW_TX,4,2        ; @RC_DRIVER_IR_RAW_TX
	.comm	_ir_getkeycode,4,2              ; @ir_getkeycode
	.comm	_ir_setkeycode,4,2              ; @ir_setkeycode
	.comm	_IR_DEFAULT_TIMEOUT,4,2         ; @IR_DEFAULT_TIMEOUT
	.comm	_ir_timer_keyup,4,2             ; @ir_timer_keyup
	.comm	_ir_timer_repeat,4,2            ; @ir_timer_repeat
	.comm	_rc_dev_type,4,2                ; @rc_dev_type
	.comm	_rc_class,4,2                   ; @rc_class
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
.subsections_via_symbols
