	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_get_firmware               ## -- Begin function lbs_get_firmware
	.p2align	4, 0x90
_lbs_get_firmware:                      ## @lbs_get_firmware
	.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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%edi, %edi
	testq	%rcx, %rcx
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_BUG_ON
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	addq	$8, %rbx
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
	callq	_release_firmware
	movq	$0, (%r15)
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rsi
	addq	$24, %rbx
	testq	%rsi, %rsi
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, -8(%rbx)
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_10
	jmp	LBB0_14
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_7
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_11:
	movq	(%r15), %rdi
	callq	_release_firmware
	movq	$0, (%r15)
	movq	(%r14), %rdi
	callq	_release_firmware
	movq	$0, (%r14)
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_get_firmware               ; -- Begin function lbs_get_firmware
	.p2align	2
_lbs_get_firmware:                      ; @lbs_get_firmware
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x3, #0
	cset	w0, eq
	bl	_BUG_ON
	cmp	x19, #0
	cset	w0, eq
	bl	_BUG_ON
	cbz	x23, LBB0_14
; %bb.1:
	ldr	x1, [x23, #16]
	cbz	x1, LBB0_14
; %bb.2:
	add	x23, x23, #8
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_request_firmware
	cbz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	bl	_release_firmware
	str	xzr, [x20]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x23, #32]
	add	x23, x23, #24
	cbz	x1, LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x23, #-8]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_5
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x2, x22
	bl	_request_firmware
	cbnz	w0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	cbnz	x8, LBB0_8
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	ldr	x0, [x20]
	bl	_release_firmware
	str	xzr, [x20]
	ldr	x0, [x19]
	bl	_release_firmware
	str	xzr, [x19]
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
