	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_ir_change_protocol
_em28xx_ir_change_protocol:             ## @em28xx_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
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leal	-128(%rdx), %ecx
	cmpl	$5, %ecx
	ja	LBB0_3
## %bb.1:
	movl	$53, %eax
	btl	%ecx, %eax
	jae	LBB0_4
## %bb.2:
	popq	%rbp
	jmp	_em2874_ir_change_protocol      ## TAILCALL
LBB0_4:
	popq	%rbp
	jmp	_em2860_ir_change_protocol      ## TAILCALL
LBB0_3:
	movq	8(%rax), %rdi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unrecognized em28xx chip id 0x%02x: IR not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_em28xx_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 em28xx_ir_change_protocol
_em28xx_ir_change_protocol:             ; @em28xx_ir_change_protocol
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w2, [x8]
	sub	w9, w2, #128
	cmp	w9, #5
	b.hi	LBB0_4
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w9
	mov	w9, #53
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_em2874_ir_change_protocol
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_em2860_ir_change_protocol
LBB0_4:
	ldr	x0, [x8, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unrecognized em28xx chip id 0x%02x: IR not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_em28xx_ir_change_protocol
.subsections_via_symbols
