	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_cfg_register_file
_fw_cfg_register_file:                  ## @fw_cfg_register_file
	.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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 12(%r14)
	movl	4(%rbx), %edi
	callq	_be16_to_cpu
	movl	%eax, 8(%r14)
	movl	4(%r14), %edi
	movl	(%rbx), %esi
	movq	_FW_CFG_MAX_FILE_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_fw_cfg_sel_ko@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14), %r8d
	movq	_fw_cfg_sysfs_entry_ktype@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_kobject_init_and_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_fw_cfg_sysfs_attr_raw@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_bin_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kobject_del
LBB0_6:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_fw_cfg_fname_kset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	movq	%r14, %rsi
	callq	_fw_cfg_build_symlink
	movq	%r14, %rdi
	callq	_fw_cfg_sysfs_cache_enlist
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FW_CFG_MAX_FILE_PATH,4,2       ## @FW_CFG_MAX_FILE_PATH
	.comm	_fw_cfg_sysfs_entry_ktype,4,2   ## @fw_cfg_sysfs_entry_ktype
	.comm	_fw_cfg_sel_ko,4,2              ## @fw_cfg_sel_ko
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_fw_cfg_sysfs_attr_raw,4,2      ## @fw_cfg_sysfs_attr_raw
	.comm	_fw_cfg_fname_kset,4,2          ## @fw_cfg_fname_kset
	.comm	_FW_CFG_VMCOREINFO_FILENAME,4,2 ## @FW_CFG_VMCOREINFO_FILENAME
	.no_dead_strip	_fw_cfg_register_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_cfg_register_file
_fw_cfg_register_file:                  ; @fw_cfg_register_file
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	str	w0, [x19, #12]
	ldr	w0, [x20, #4]
	bl	_be16_to_cpu
	str	w0, [x19, #8]
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
Lloh3:
	adrp	x8, _FW_CFG_MAX_FILE_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_CFG_MAX_FILE_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
Lloh6:
	adrp	x8, _fw_cfg_sel_ko@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fw_cfg_sel_ko@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w4, [x19, #8]
Lloh9:
	adrp	x1, _fw_cfg_sysfs_entry_ktype@GOTPAGE
Lloh10:
	ldr	x1, [x1, _fw_cfg_sysfs_entry_ktype@GOTPAGEOFF]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_kobject_init_and_add
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
Lloh13:
	adrp	x1, _fw_cfg_sysfs_attr_raw@GOTPAGE
Lloh14:
	ldr	x1, [x1, _fw_cfg_sysfs_attr_raw@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_bin_file
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_kobject_del
LBB0_4:
	mov	x0, x19
	bl	_kfree
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _fw_cfg_fname_kset@GOTPAGE
Lloh19:
	ldr	x8, [x8, _fw_cfg_fname_kset@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
	mov	x1, x19
	bl	_fw_cfg_build_symlink
	mov	x0, x19
	bl	_fw_cfg_sysfs_cache_enlist
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FW_CFG_MAX_FILE_PATH,4,2       ; @FW_CFG_MAX_FILE_PATH
	.comm	_fw_cfg_sysfs_entry_ktype,4,2   ; @fw_cfg_sysfs_entry_ktype
	.comm	_fw_cfg_sel_ko,4,2              ; @fw_cfg_sel_ko
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_fw_cfg_sysfs_attr_raw,4,2      ; @fw_cfg_sysfs_attr_raw
	.comm	_fw_cfg_fname_kset,4,2          ; @fw_cfg_fname_kset
	.comm	_FW_CFG_VMCOREINFO_FILENAME,4,2 ; @FW_CFG_VMCOREINFO_FILENAME
	.no_dead_strip	_fw_cfg_register_file
.subsections_via_symbols
