	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_raw_load_modules            ## -- Begin function ir_raw_load_modules
	.p2align	4, 0x90
_ir_raw_load_modules:                   ## @ir_raw_load_modules
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_proto_names@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	movq	_RC_PROTO_BIT_NONE@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rdi,%r14), %esi
	leaq	L_.str(%rip), %rdi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_pr_err
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	movl	(%rdi,%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %r14
	cmpq	%rax, %r15
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movl	(%rdi,%r14), %eax
	cmpl	(%r13), %eax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RC_PROTO_BIT_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_RC_PROTO_BIT_OTHER@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_ir_raw_get_allowed_protocols
	movq	(%r12), %rdi
	notl	%eax
	andl	(%rbx), %eax
	testl	%eax, (%rdi,%r14)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rdi,%r14), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_request_module
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$20, %edi
	callq	_msleep
	xorl	%eax, %eax
	callq	_ir_raw_get_allowed_protocols
	movq	(%r12), %rdi
	notl	%eax
	andl	(%rbx), %eax
	testl	%eax, (%rdi,%r14)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rdi,%r14), %edx
	movl	8(%rdi,%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	8(%rax,%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_proto_names,8,3                ## @proto_names
	.comm	_RC_PROTO_BIT_NONE,4,2          ## @RC_PROTO_BIT_NONE
	.comm	_RC_PROTO_BIT_OTHER,4,2         ## @RC_PROTO_BIT_OTHER
	.comm	_RC_PROTO_BIT_UNKNOWN,4,2       ## @RC_PROTO_BIT_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't enable IR protocol %s\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't load IR protocol module %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Loaded IR protocol module %s, but protocol %s still not available\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_raw_load_modules            ; -- Begin function ir_raw_load_modules
	.p2align	2
_ir_raw_load_modules:                   ; @ir_raw_load_modules
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
Lloh0:
	adrp	x24, _proto_names@GOTPAGE
Lloh1:
	ldr	x24, [x24, _proto_names@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x25, #0
	mov	x26, #0
Lloh2:
	adrp	x27, _RC_PROTO_BIT_NONE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _RC_PROTO_BIT_NONE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _RC_PROTO_BIT_OTHER@GOTPAGE
Lloh5:
	ldr	x28, [x28, _RC_PROTO_BIT_OTHER@GOTPAGEOFF]
Lloh6:
	adrp	x22, _RC_PROTO_BIT_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _RC_PROTO_BIT_UNKNOWN@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
Lloh10:
	adrp	x21, l_.str.1@PAGE
Lloh11:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh12:
	adrp	x23, l_.str.3@PAGE
Lloh13:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x8, #4]
	mov	x0, x20
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_pr_err
	ldr	x0, [x24]
	ldr	w8, [x0, x25]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	bl	_ARRAY_SIZE
	add	x25, x25, #12
	cmp	x26, w0, sxtw
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	ldr	w8, [x0, x25]
	ldr	w9, [x27]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x28]
	ldr	w10, [x22]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_ir_raw_get_allowed_protocols
	mov	x8, x0
	ldr	w9, [x19]
	ldr	x0, [x24]
	ldr	w10, [x0, x25]
	bic	w8, w9, w8
	tst	w8, w10
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x0, x25
	ldr	w1, [x8, #8]
	cbz	w1, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_request_module
	tbnz	w0, #31, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #20
	bl	_msleep
	bl	_ir_raw_get_allowed_protocols
	mov	x8, x0
	ldr	w9, [x19]
	ldr	x0, [x24]
	ldr	w10, [x0, x25]
	bic	w8, w9, w8
	tst	w8, w10
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x0, x25
	ldp	w8, w1, [x8, #4]
	str	x8, [sp]
	mov	x0, x23
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	add	x8, x8, x25
	ldr	w1, [x8, #8]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_proto_names,8,3                ; @proto_names
	.comm	_RC_PROTO_BIT_NONE,4,2          ; @RC_PROTO_BIT_NONE
	.comm	_RC_PROTO_BIT_OTHER,4,2         ; @RC_PROTO_BIT_OTHER
	.comm	_RC_PROTO_BIT_UNKNOWN,4,2       ; @RC_PROTO_BIT_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't enable IR protocol %s\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't load IR protocol module %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Loaded IR protocol module %s, but protocol %s still not available\n"

.subsections_via_symbols
