	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_reset_crom
_fw_reset_crom:                         ## @fw_reset_crom
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	16(%rbx), %r14
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_fw_init_crom
	movq	16(%rbx), %r14
LBB0_2:
	movq	(%rbx), %r12
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_STAILQ_INIT
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_bzero
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_crom_add_chunk
	movq	_CSRKEY_NCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$33728, %edx                    ## imm = 0x83C0
	callq	_crom_add_entry
	movq	_CSRKEY_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSRVAL_VENDOR_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_crom_add_entry
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crom_add_simple_text           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSRKEY_NCAP,4,2                ## @CSRKEY_NCAP
	.comm	_CSRKEY_VENDOR,4,2              ## @CSRKEY_VENDOR
	.comm	_CSRVAL_VENDOR_PRIVATE,4,2      ## @CSRVAL_VENDOR_PRIVATE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"FreeBSD Project"

L_str:                                  ## @str
	.asciz	"fw_reset"

	.no_dead_strip	_fw_reset_crom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_reset_crom
_fw_reset_crom:                         ; @fw_reset_crom
	.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
	mov	x20, x0
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x19, [x20, #16]
	cbnz	x19, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_fw_init_crom
	ldr	x19, [x20, #16]
LBB0_2:
	ldp	x20, x21, [x20]
	mov	x0, x21
	bl	_STAILQ_INIT
	mov	x0, x20
	mov	w1, #4
	bl	_bzero
	mov	x0, x21
	mov	x1, #0
	mov	x2, x20
	mov	w3, #0
	bl	_crom_add_chunk
Lloh2:
	adrp	x8, _CSRKEY_NCAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSRKEY_NCAP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #33728
	bl	_crom_add_entry
Lloh5:
	adrp	x8, _CSRKEY_VENDOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSRKEY_VENDOR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _CSRVAL_VENDOR_PRIVATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CSRVAL_VENDOR_PRIVATE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_crom_add_entry
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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	_crom_add_simple_text
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CSRKEY_NCAP,4,2                ; @CSRKEY_NCAP
	.comm	_CSRKEY_VENDOR,4,2              ; @CSRKEY_VENDOR
	.comm	_CSRVAL_VENDOR_PRIVATE,4,2      ; @CSRVAL_VENDOR_PRIVATE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"FreeBSD Project"

l_str:                                  ; @str
	.asciz	"fw_reset"

	.no_dead_strip	_fw_reset_crom
.subsections_via_symbols
