	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esre_create_sysfs_entry
_esre_create_sysfs_entry:               ## @esre_create_sysfs_entry
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_esrt_kset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_esrt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	%r15, 8(%r12)
	movq	_esre1_ktype@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	xorl	%edx, %edx
	movl	%r14d, %r8d
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_5:
	movq	_entry_list@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_esrt_kset,4,2                  ## @esrt_kset
	.comm	_esrt,8,3                       ## @esrt
	.comm	_esre1_ktype,4,2                ## @esre1_ktype
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entry%d"

	.comm	_entry_list,4,2                 ## @entry_list
	.no_dead_strip	_esre_create_sysfs_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esre_create_sysfs_entry
_esre_create_sysfs_entry:               ; @esre_create_sysfs_entry
	.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, x1
	mov	x21, 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
Lloh3:
	adrp	x8, _esrt_kset@GOTPAGE
Lloh4:
	ldr	x8, [x8, _esrt_kset@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #4]!
Lloh6:
	adrp	x8, _esrt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _esrt@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	str	x21, [x19, #8]
Lloh9:
	adrp	x1, _esre1_ktype@GOTPAGE
Lloh10:
	ldr	x1, [x1, _esre1_ktype@GOTPAGEOFF]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, #0
	mov	x4, x20
	bl	_kobject_init_and_add
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x1, _entry_list@GOTPAGE
Lloh14:
	ldr	x1, [x1, _entry_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add_tail
	mov	w20, #0
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_esrt_kset,4,2                  ; @esrt_kset
	.comm	_esrt,8,3                       ; @esrt
	.comm	_esre1_ktype,4,2                ; @esre1_ktype
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entry%d"

	.comm	_entry_list,4,2                 ; @entry_list
	.no_dead_strip	_esre_create_sysfs_entry
.subsections_via_symbols
