	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_sysfs_runtime_map_entry
_add_sysfs_runtime_map_entry:           ## @add_sysfs_runtime_map_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	%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	%rdx, %r15
	movl	%esi, %r14d
	movq	_map_kset@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_kset_create_and_add
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_map_ktype@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_kobject_init
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %ecx
	callq	_kobject_add
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_kobject_put
	movq	(%r13), %rdi
	callq	_kset_unregister
	movq	$0, (%r13)
	jmp	LBB0_9
LBB0_5:
	movq	(%r13), %rdi
	callq	_kset_unregister
	movq	$0, (%r13)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r12d
LBB0_9:
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_map_kset,8,3                   ## @map_kset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"runtime-map"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_map_ktype,4,2                  ## @map_ktype
L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.no_dead_strip	_add_sysfs_runtime_map_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_sysfs_runtime_map_entry
_add_sysfs_runtime_map_entry:           ; @add_sysfs_runtime_map_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, x2
	mov	x19, x1
Lloh0:
	adrp	x22, _map_kset@GOTPAGE
Lloh1:
	ldr	x22, [x22, _map_kset@GOTPAGEOFF]
	ldr	x8, [x22]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	bl	_kset_create_and_add
	str	x0, [x22]
	cbz	x0, LBB0_6
LBB0_2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	add	x0, x0, #8
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
Lloh7:
	adrp	x1, _map_ktype@GOTPAGE
Lloh8:
	ldr	x1, [x1, _map_ktype@GOTPAGEOFF]
	mov	x0, x21
	bl	_kobject_init
	ldr	x8, [x22]
	str	x8, [x21]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	x3, x19
	bl	_kobject_add
	cbz	w0, LBB0_8
; %bb.4:
	mov	x19, x0
	mov	x0, x21
	bl	_kobject_put
	ldr	x0, [x22]
	bl	_kset_unregister
	str	xzr, [x22]
	b	LBB0_7
LBB0_5:
	ldr	x0, [x22]
	bl	_kset_unregister
	str	xzr, [x22]
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, 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	_ERR_PTR
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_map_kset,8,3                   ; @map_kset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"runtime-map"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_map_ktype,4,2                  ; @map_ktype
l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.no_dead_strip	_add_sysfs_runtime_map_entry
.subsections_via_symbols
