	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_protocols
_show_protocols:                        ## @show_protocols
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_to_rc_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rcx
	movq	_RC_DRIVER_SCANCODE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	8(%rax), %ecx
	movl	24(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_4:
	movq	16(%rax), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ir_raw_get_allowed_protocols
	movl	%eax, %ecx
LBB0_5:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %rdx
	movl	%ebx, %r15d
	movslq	%ebx, %rcx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_IR_dprintk
	movq	_proto_names@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	testl	%eax, %eax
	jle	LBB0_11
## %bb.6:
	movl	$8, %r14d
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax,%r14), %rdx
	movq	%rbx, %rdi
	callq	_sprintf
	cltq
	addq	%rax, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r14
	cmpq	%rax, %r12
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	-8(%rax,%r14), %ecx
	andl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	leaq	L_.str.1(%rip), %rsi
	testl	%r15d, %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.2(%rip), %rsi
	testl	%ecx, %ecx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	xorl	%ecx, %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rbx
	setne	%cl
	movq	%rbx, %rax
	subq	%rcx, %rax
	negq	%rcx
	movb	$10, (%rbx,%rcx)
	subl	%edx, %eax
	incl	%eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RC_DRIVER_SCANCODE,8,3         ## @RC_DRIVER_SCANCODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allowed - 0x%llx, enabled - 0x%llx\n"

	.comm	_proto_names,8,3                ## @proto_names
L_.str.1:                               ## @.str.1
	.asciz	"[%s] "

L_.str.2:                               ## @.str.2
	.asciz	"%s "

	.no_dead_strip	_show_protocols
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_protocols
_show_protocols:                        ; @show_protocols
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	bl	_to_rc_dev
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RC_DRIVER_SCANCODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RC_DRIVER_SCANCODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w22, [x0, #24]
	ldr	w20, [x0, #8]
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_4:
	ldr	x8, [x0, #16]
	ldr	w22, [x8]
	bl	_ir_raw_get_allowed_protocols
	mov	x20, x0
LBB0_5:
	sxtw	x2, w20
	sxtw	x3, w22
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
Lloh8:
	adrp	x23, _proto_names@GOTPAGE
Lloh9:
	ldr	x23, [x23, _proto_names@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	mov	x21, x19
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x24, #0
	mov	x25, #0
Lloh10:
	adrp	x26, l_.str.1@PAGE
Lloh11:
	add	x26, x26, l_.str.1@PAGEOFF
	mov	x21, x19
Lloh12:
	adrp	x27, l_.str.2@PAGE
Lloh13:
	add	x27, x27, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, x24
	ldr	x2, [x8, #8]
	mov	x0, x21
	bl	_sprintf
	add	x21, x21, w0, sxtw
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x25, w0, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w9, [x8, x24]
	and	w9, w9, w20
	mov	x1, x26
	tst	w9, w22
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x27
	cbnz	w9, LBB0_7
	b	LBB0_8
LBB0_11:
	cmp	x21, x19
	cset	w8, ne
	mov	w9, #10
	sub	x8, x21, x8
	sub	w10, w8, w19
	strb	w9, [x8]
	add	w0, w10, #1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RC_DRIVER_SCANCODE,8,3         ; @RC_DRIVER_SCANCODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allowed - 0x%llx, enabled - 0x%llx\n"

	.comm	_proto_names,8,3                ; @proto_names
l_.str.1:                               ; @.str.1
	.asciz	"[%s] "

l_.str.2:                               ; @.str.2
	.asciz	"%s "

	.no_dead_strip	_show_protocols
.subsections_via_symbols
