	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_next_firmware_from_table
_load_next_firmware_from_table:         ## @load_next_firmware_from_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	addq	$16, %rbx
	movq	%rbx, 8(%r14)
	jmp	LBB0_3
LBB0_1:
	movq	24(%r14), %rbx
LBB0_3:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_release_firmware
	movq	$0, 16(%r14)
LBB0_5:
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.6:
	movq	(%r14), %rax
	cmpq	%rax, (%rbx)
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	leaq	16(%rbx), %rcx
	cmpq	%rax, 16(%rbx)
	movq	%rcx, %rbx
	jne	LBB0_10
LBB0_8:
	movq	%rcx, 8(%r14)
	movq	_helper_firmware_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_do_load_firmware               ## TAILCALL
LBB0_11:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lbs_fw_loaded                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_helper_firmware_cb,4,2         ## @helper_firmware_cb
	.no_dead_strip	_load_next_firmware_from_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_next_firmware_from_table
_load_next_firmware_from_table:         ; @load_next_firmware_from_table
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_9
; %bb.1:
	add	x20, x8, #16
	str	x20, [x19, #8]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_3
LBB0_2:
	bl	_release_firmware
	str	xzr, [x19, #16]
LBB0_3:
	ldr	w1, [x20, #8]
	cbz	w1, LBB0_8
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x9, x8
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #24]
	cbz	w1, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x20, #16]!
	cmp	x9, x8
	b.ne	LBB0_5
LBB0_7:
	str	x20, [x19, #8]
Lloh0:
	adrp	x8, _helper_firmware_cb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _helper_firmware_cb@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_do_load_firmware
LBB0_8:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lbs_fw_loaded
LBB0_9:
	ldr	x20, [x19, #24]
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_helper_firmware_cb,4,2         ; @helper_firmware_cb
	.no_dead_strip	_load_next_firmware_from_table
.subsections_via_symbols
