	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_lirc_close
_ir_lirc_close:                         ## @ir_lirc_close
	.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	(%rsi), %r14
	movq	16(%r14), %rbx
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%r14), %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%rbx), %rax
	movq	_RC_DRIVER_IR_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	4(%r14), %rdi
	callq	_kfifo_free
	movq	(%rbx), %rax
LBB0_2:
	movq	_RC_DRIVER_IR_RAW_TX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_kfifo_free
LBB0_4:
	movq	%r14, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_rc_close
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_put_device
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RC_DRIVER_IR_RAW,8,3           ## @RC_DRIVER_IR_RAW
	.comm	_RC_DRIVER_IR_RAW_TX,8,3        ## @RC_DRIVER_IR_RAW_TX
	.no_dead_strip	_ir_lirc_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_lirc_close
_ir_lirc_close:                         ; @ir_lirc_close
	.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
	ldr	x20, [x1]
	ldr	x19, [x20, #16]
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x0, x20, #8
	bl	_list_del
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _RC_DRIVER_IR_RAW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RC_DRIVER_IR_RAW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x0, x20, #4
	bl	_kfifo_free
	ldr	x8, [x19]
LBB0_2:
Lloh3:
	adrp	x9, _RC_DRIVER_IR_RAW_TX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RC_DRIVER_IR_RAW_TX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_kfifo_free
LBB0_4:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_rc_close
	add	x0, x19, #8
	bl	_put_device
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RC_DRIVER_IR_RAW,8,3           ; @RC_DRIVER_IR_RAW
	.comm	_RC_DRIVER_IR_RAW_TX,8,3        ; @RC_DRIVER_IR_RAW_TX
	.no_dead_strip	_ir_lirc_close
.subsections_via_symbols
