	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_cfg_sysfs_probe
_fw_cfg_sysfs_probe:                    ## @fw_cfg_sysfs_probe
	.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	_fw_cfg_sel_ko@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_fw_cfg_top_ko@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_kobject_create_and_add
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_kset_create_and_add
	movq	_fw_cfg_fname_kset@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	%r14, %rdi
	callq	_fw_cfg_do_platform_probe
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	_FW_CFG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_fw_cfg_read_blob
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_le32_to_cpu
	movq	_fw_cfg_rev@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %edi
	movq	_fw_cfg_rev_attr@GOTPCREL(%rip), %rsi
	callq	_sysfs_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fw_cfg_register_dir_entries
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_fw_cfg_sysfs_cache_cleanup
	movl	(%r12), %edi
	movq	_fw_cfg_rev_attr@GOTPCREL(%rip), %rsi
	callq	_sysfs_remove_file
	movl	%r14d, %ebx
LBB0_11:
	xorl	%eax, %eax
	callq	_fw_cfg_io_cleanup
	jmp	LBB0_12
LBB0_6:
	movl	%eax, %ebx
LBB0_12:
	movl	(%r13), %edi
	callq	_fw_cfg_kset_unregister_recursive
LBB0_13:
	movq	(%r15), %rdi
	callq	_fw_cfg_kobj_cleanup
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_fw_cfg_sel_ko,8,3              ## @fw_cfg_sel_ko
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"by_key"

	.comm	_fw_cfg_top_ko,4,2              ## @fw_cfg_top_ko
L_.str.1:                               ## @.str.1
	.asciz	"by_name"

	.comm	_fw_cfg_fname_kset,4,2          ## @fw_cfg_fname_kset
	.comm	_FW_CFG_ID,4,2                  ## @FW_CFG_ID
	.comm	_fw_cfg_rev,4,2                 ## @fw_cfg_rev
	.comm	_fw_cfg_rev_attr,4,2            ## @fw_cfg_rev_attr
L_.str.2:                               ## @.str.2
	.asciz	"fw_cfg: loaded.\n"

	.no_dead_strip	_fw_cfg_sysfs_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_cfg_sysfs_probe
_fw_cfg_sysfs_probe:                    ; @fw_cfg_sysfs_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x21, _fw_cfg_sel_ko@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fw_cfg_sel_ko@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_13
LBB0_2:
	mov	x20, x0
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
Lloh8:
	adrp	x22, _fw_cfg_top_ko@GOTPAGE
Lloh9:
	ldr	x22, [x22, _fw_cfg_top_ko@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kobject_create_and_add
	str	x0, [x21]
	cbz	x0, LBB0_13
; %bb.3:
	ldr	w2, [x22]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, #0
	bl	_kset_create_and_add
Lloh14:
	adrp	x23, _fw_cfg_fname_kset@GOTPAGE
Lloh15:
	ldr	x23, [x23, _fw_cfg_fname_kset@GOTPAGEOFF]
	str	w0, [x23]
	cbz	w0, LBB0_12
; %bb.4:
	mov	x0, x20
	bl	_fw_cfg_do_platform_probe
	mov	x19, x0
	cbnz	w0, LBB0_11
; %bb.5:
Lloh16:
	adrp	x8, _FW_CFG_ID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FW_CFG_ID@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	w2, #0
	mov	w3, #4
	bl	_fw_cfg_read_blob
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_le32_to_cpu
Lloh19:
	adrp	x8, _fw_cfg_rev@GOTPAGE
Lloh20:
	ldr	x8, [x8, _fw_cfg_rev@GOTPAGEOFF]
Lloh21:
	str	w0, [x8]
	ldr	w0, [x22]
Lloh22:
	adrp	x1, _fw_cfg_rev_attr@GOTPAGE
Lloh23:
	ldr	x1, [x1, _fw_cfg_rev_attr@GOTPAGEOFF]
	bl	_sysfs_create_file
	mov	x19, x0
	cbnz	w0, LBB0_9
; %bb.7:
	bl	_fw_cfg_register_dir_entries
	mov	x19, x0
	cbz	w0, LBB0_14
; %bb.8:
	bl	_fw_cfg_sysfs_cache_cleanup
	ldr	w0, [x22]
Lloh24:
	adrp	x1, _fw_cfg_rev_attr@GOTPAGE
Lloh25:
	ldr	x1, [x1, _fw_cfg_rev_attr@GOTPAGEOFF]
	bl	_sysfs_remove_file
LBB0_9:
	bl	_fw_cfg_io_cleanup
	b	LBB0_11
LBB0_10:
	mov	x19, x0
LBB0_11:
	ldr	w0, [x23]
	bl	_fw_cfg_kset_unregister_recursive
LBB0_12:
	ldr	x0, [x21]
	bl	_fw_cfg_kobj_cleanup
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_fw_cfg_sel_ko,8,3              ; @fw_cfg_sel_ko
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"by_key"

	.comm	_fw_cfg_top_ko,4,2              ; @fw_cfg_top_ko
l_.str.1:                               ; @.str.1
	.asciz	"by_name"

	.comm	_fw_cfg_fname_kset,4,2          ; @fw_cfg_fname_kset
	.comm	_FW_CFG_ID,4,2                  ; @FW_CFG_ID
	.comm	_fw_cfg_rev,4,2                 ; @fw_cfg_rev
	.comm	_fw_cfg_rev_attr,4,2            ; @fw_cfg_rev_attr
l_.str.2:                               ; @.str.2
	.asciz	"fw_cfg: loaded.\n"

	.no_dead_strip	_fw_cfg_sysfs_probe
.subsections_via_symbols
