	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_card_add                    ## -- Begin function fw_card_add
	.p2align	4, 0x90
_fw_card_add:                           ## @fw_card_add
	.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, %rbx
	movq	%rsi, 32(%rdi)
	movq	%rdx, 24(%rdi)
	movl	%ecx, 16(%rdi)
	movq	_card_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_tmp_config_rom@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_generate_config_rom
	movq	8(%rbx), %rax
	movl	(%r14), %esi
	movq	_config_rom_length@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_card_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
LBB0_2:
	movq	_card_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_card_mutex,4,2                 ## @card_mutex
	.comm	_tmp_config_rom,4,2             ## @tmp_config_rom
	.comm	_config_rom_length,4,2          ## @config_rom_length
	.comm	_card_list,4,2                  ## @card_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_card_add                    ; -- Begin function fw_card_add
	.p2align	2
_fw_card_add:                           ; @fw_card_add
	.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
	stp	x2, x1, [x0, #24]
	str	w3, [x0, #16]
Lloh0:
	adrp	x0, _card_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _card_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x20, _tmp_config_rom@GOTPAGE
Lloh3:
	ldr	x20, [x20, _tmp_config_rom@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_generate_config_rom
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x20]
Lloh4:
	adrp	x9, _config_rom_length@GOTPAGE
Lloh5:
	ldr	x9, [x9, _config_rom_length@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x9]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, _card_list@GOTPAGE
Lloh8:
	ldr	x1, [x1, _card_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add_tail
LBB0_2:
Lloh9:
	adrp	x0, _card_mutex@GOTPAGE
Lloh10:
	ldr	x0, [x0, _card_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_card_mutex,4,2                 ; @card_mutex
	.comm	_tmp_config_rom,4,2             ; @tmp_config_rom
	.comm	_config_rom_length,4,2          ; @config_rom_length
	.comm	_card_list,4,2                  ; @card_list
.subsections_via_symbols
