	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_protocol_change
_parse_protocol_change:                 ## @parse_protocol_change
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rdx, -80(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	orl	-48(%rbp), %eax                 ## 4-byte Folded Reload
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movl	%eax, (%r13)
	leaq	-80(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strsep
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movb	(%r12), %r15b
	testb	%r15b, %r15b
	je	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$43, %r15b
	sete	%cl
	cmpb	$45, %r15b
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	sete	%al
	movb	%cl, -42(%rbp)                  ## 1-byte Spill
	orb	%cl, %al
	movzbl	%al, %eax
	addq	%rax, %r12
	movq	_proto_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_proto_names@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	-8(%r13,%r14), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13,%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_proto_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcasecmp
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, %eax
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$43, %r15b
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	-41(%rbp), %al                  ## 1-byte Reload
	orb	%al, -42(%rbp)                  ## 1-byte Folded Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	andl	(%r13), %eax
	jmp	LBB0_17
LBB0_18:
	testl	%r14d, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_21
LBB0_19:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" \n"

	.comm	_proto_names,8,3                ## @proto_names
L_.str.1:                               ## @.str.1
	.asciz	"lirc"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown protocol: '%s'\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Protocol not specified\n"

	.no_dead_strip	_parse_protocol_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_protocol_change
_parse_protocol_change:                 ; @parse_protocol_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
	str	x2, [sp, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	cbz	x0, LBB0_19
; %bb.1:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w20, #0
Lloh2:
	adrp	x26, _proto_names@GOTPAGE
Lloh3:
	ldr	x26, [x26, _proto_names@GOTPAGEOFF]
                                        ; implicit-def: $w25
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	orr	w8, w8, w25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	str	w8, [x21]
	add	x0, sp, #24
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strsep
	cbz	x0, LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldrb	w28, [x0]
	cbz	w28, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, #43
	cset	w19, eq
	cmp	w28, #45
	cset	w27, ne
	cset	w8, eq
	orr	w8, w19, w8
	add	x24, x0, x8
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w25, [sp, #20]                  ; 4-byte Folded Spill
	mov	x22, x21
	mov	x21, #0
	mov	x23, #0
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x25, [x26]
	ldr	x1, [x25, x21]
	mov	x0, x24
	bl	_strcasecmp
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x23, x23, #1
	mov	x0, x25
	bl	_ARRAY_SIZE
	add	x21, x21, #16
	cmp	x23, w0, sxtw
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x22
	ldr	w25, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x25, x21
	ldr	w25, [x8, #8]
	mov	x21, x22
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcasecmp
	cbnz	w0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, #43
	b.eq	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	orr	w9, w19, w27
	mov	x8, x25
	tbnz	w9, #0, LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	bic	w8, w8, w25
	b	LBB0_3
LBB0_18:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	cbnz	w20, LBB0_21
LBB0_19:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
LBB0_20:
	bl	_dev_dbg
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	str	x24, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" \n"

	.comm	_proto_names,8,3                ; @proto_names
l_.str.1:                               ; @.str.1
	.asciz	"lirc"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown protocol: '%s'\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Protocol not specified\n"

	.no_dead_strip	_parse_protocol_change
.subsections_via_symbols
