	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_img_ir_setup_hw                ## -- Begin function img_ir_setup_hw
	.p2align	4, 0x90
_img_ir_setup_hw:                       ## @img_ir_setup_hw
	.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
	cmpl	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movq	_img_ir_decoders@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_img_ir_decoder_compatible
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %r15
	addq	$8, %rbx
	testq	%r15, %r15
	jne	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_img_ir_set_protocol
	movq	%r14, %rdi
	movq	%r15, %rsi
LBB0_7:
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_img_ir_set_decoder             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_img_ir_decoders,8,3            ## @img_ir_decoders
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_img_ir_setup_hw                ; -- Begin function img_ir_setup_hw
	.p2align	2
_img_ir_setup_hw:                       ; @img_ir_setup_hw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _img_ir_decoders@GOTPAGE
Lloh1:
	ldr	x8, [x8, _img_ir_decoders@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x20, [x8]
	cbz	x20, LBB0_5
; %bb.2:
	add	x21, x8, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_img_ir_decoder_compatible
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x21], #8
	cbnz	x20, LBB0_3
LBB0_5:
	mov	x0, x19
	mov	x1, #0
	b	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_img_ir_set_protocol
	mov	x0, x19
	mov	x1, x20
LBB0_8:
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_img_ir_set_decoder
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_img_ir_decoders,8,3            ; @img_ir_decoders
.subsections_via_symbols
