	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imon_ir_change_protocol
_imon_ir_change_protocol:               ## @imon_ir_change_protocol
	.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	8(%rdi), %r15
	movq	16(%r15), %r14
	movabsq	$-8791026472627208192, %rax     ## imm = 0x8600000000000000
	movq	%rax, -32(%rbp)
	testl	%esi, %esi
	je	LBB0_8
## %bb.1:
	movl	%esi, %ebx
	testl	%esi, (%rdi)
	je	LBB0_2
## %bb.3:
	cmpl	$128, %ebx
	jne	LBB0_4
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	cmpl	$128, %ebx
	je	LBB0_7
LBB0_4:
	cmpl	$130, %ebx
	je	LBB0_7
## %bb.5:
	cmpl	$129, %ebx
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movb	$1, -32(%rbp)
	movl	$129, %ebx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_9:
	movq	_pad_stabilize@GOTPCREL(%rip), %rax
	movl	$130, %ebx
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_11:
	movl	8(%r15), %edi
	leaq	-32(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_send_packet
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, (%r15)
	movl	$0, 4(%r15)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Looks like you're trying to use an IR protocol this device does not support\n"

L_.str.1:                               ## @.str.1
	.asciz	"Configuring IR receiver for MCE protocol\n"

L_.str.2:                               ## @.str.2
	.asciz	"Configuring IR receiver for iMON protocol\n"

	.comm	_pad_stabilize,4,2              ## @pad_stabilize
L_.str.3:                               ## @.str.3
	.asciz	"PAD stabilize functionality disabled\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unsupported IR protocol specified, overriding to iMON IR protocol\n"

	.no_dead_strip	_imon_ir_change_protocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imon_ir_change_protocol
_imon_ir_change_protocol:               ; @imon_ir_change_protocol
	.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	x19, [x0, #8]
	ldr	x20, [x19, #16]
	mov	x8, #-8791026472627208192
	str	x8, [sp, #8]
	cbz	w1, LBB0_7
; %bb.1:
	mov	x21, x1
	ldr	w8, [x0]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_4
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	cmp	w21, #128
	b.eq	LBB0_8
LBB0_4:
	cmp	w21, #130
	b.eq	LBB0_8
; %bb.5:
	cmp	w21, #129
	b.ne	LBB0_7
; %bb.6:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w8, #1
	strb	w8, [sp, #8]
	mov	w20, #129
	b	LBB0_12
LBB0_7:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_9:
Lloh8:
	adrp	x8, _pad_stabilize@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pad_stabilize@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
; %bb.10:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_11:
	mov	w20, #130
LBB0_12:
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
	mov	x0, x19
	bl	_send_packet
	cbnz	w0, LBB0_14
; %bb.13:
	stp	w20, wzr, [x19]
LBB0_14:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Looks like you're trying to use an IR protocol this device does not support\n"

l_.str.1:                               ; @.str.1
	.asciz	"Configuring IR receiver for MCE protocol\n"

l_.str.2:                               ; @.str.2
	.asciz	"Configuring IR receiver for iMON protocol\n"

	.comm	_pad_stabilize,4,2              ; @pad_stabilize
l_.str.3:                               ; @.str.3
	.asciz	"PAD stabilize functionality disabled\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unsupported IR protocol specified, overriding to iMON IR protocol\n"

	.no_dead_strip	_imon_ir_change_protocol
.subsections_via_symbols
