	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lirc_bpf_detach
_lirc_bpf_detach:                       ## @lirc_bpf_detach
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_RC_DRIVER_IR_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_ir_raw_handler_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	8(%r15), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	movl	(%r12), %edi
	callq	_lirc_rcu_dereference
	movq	%rax, %r15
	leaq	-40(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_bpf_prog_array_copy
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	movq	-40(%rbp), %rsi
	callq	_rcu_assign_pointer
	movq	%r15, %rdi
	callq	_bpf_prog_array_free
	movq	%r14, %rdi
	callq	_bpf_prog_put
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	_ir_raw_handler_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RC_DRIVER_IR_RAW,8,3           ## @RC_DRIVER_IR_RAW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ir_raw_handler_lock,4,2        ## @ir_raw_handler_lock
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_lirc_bpf_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lirc_bpf_detach
_lirc_bpf_detach:                       ; @lirc_bpf_detach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, [x0]
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_5
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x0, _ir_raw_handler_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ir_raw_handler_lock@GOTPAGEOFF]
	bl	_mutex_lock_interruptible
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_6
; %bb.3:
	ldr	w0, [x22]
	bl	_lirc_rcu_dereference
	mov	x21, x0
	add	x3, sp, #8
	mov	x1, x19
	mov	x2, #0
	bl	_bpf_prog_array_copy
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x22]
	ldr	x1, [sp, #8]
	bl	_rcu_assign_pointer
	mov	x0, x21
	bl	_bpf_prog_array_free
	mov	x0, x19
	bl	_bpf_prog_put
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
Lloh11:
	adrp	x0, _ir_raw_handler_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ir_raw_handler_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RC_DRIVER_IR_RAW,8,3           ; @RC_DRIVER_IR_RAW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ir_raw_handler_lock,4,2        ; @ir_raw_handler_lock
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_lirc_bpf_detach
.subsections_via_symbols
