	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lirc_bpf_attach
_lirc_bpf_attach:                       ## @lirc_bpf_attach
	.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_12
## %bb.3:
	movq	8(%r15), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.6:
	movl	(%r12), %edi
	callq	_lirc_rcu_dereference
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_bpf_prog_array_length
	movq	_BPF_MAX_PROGS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
LBB0_9:
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_bpf_prog_array_copy
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movl	(%r12), %edi
	movq	-40(%rbp), %rsi
	callq	_rcu_assign_pointer
	movq	%r15, %rdi
	callq	_bpf_prog_array_free
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_E2BIG@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	_ir_raw_handler_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_12:
	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
	.comm	_BPF_MAX_PROGS,8,3              ## @BPF_MAX_PROGS
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_lirc_bpf_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lirc_bpf_attach
_lirc_bpf_attach:                       ; @lirc_bpf_attach
	.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_7
; %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_12
; %bb.2:
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_8
; %bb.3:
	ldr	w0, [x22]
	bl	_lirc_rcu_dereference
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_bpf_prog_array_length
Lloh5:
	adrp	x8, _BPF_MAX_PROGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BPF_MAX_PROGS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_9
LBB0_5:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, #0
	mov	x2, x19
	bl	_bpf_prog_array_copy
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.6:
	ldr	w0, [x22]
	ldr	x1, [sp, #8]
	bl	_rcu_assign_pointer
	mov	x0, x21
	bl	_bpf_prog_array_free
	b	LBB0_11
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_8:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _E2BIG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
Lloh15:
	adrp	x0, _ir_raw_handler_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _ir_raw_handler_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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
	.comm	_BPF_MAX_PROGS,8,3              ; @BPF_MAX_PROGS
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_lirc_bpf_attach
.subsections_via_symbols
