	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___of_add_property_sysfs        ## -- Begin function __of_add_property_sysfs
	.p2align	4, 0x90
___of_add_property_sysfs:               ## @__of_add_property_sysfs
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	movl	$9, %edx
	callq	_strncmp
	movq	%rax, %r15
	movq	_CONFIG_SYSFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_of_kset@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	callq	_of_node_is_attached
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_sysfs_bin_attr_init
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_safe_name
	movl	%eax, 16(%rbx)
	movl	$256, %eax                      ## imm = 0x100
	movl	$292, %ecx                      ## imm = 0x124
	testq	%r15, %r15
	cmovel	%eax, %ecx
	movl	%ecx, 12(%rbx)
	je	LBB0_4
## %bb.5:
	movl	20(%rbx), %eax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, 8(%rbx)
	movq	_of_node_property_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sysfs_create_bin_file
	movl	%eax, %r12d
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rcx
	callq	_WARN
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"security-"

	.comm	_CONFIG_SYSFS,4,2               ## @CONFIG_SYSFS
	.comm	_of_kset,4,2                    ## @of_kset
	.comm	_of_node_property_read,4,2      ## @of_node_property_read
L_.str.1:                               ## @.str.1
	.asciz	"error adding attribute %s to node %pOF\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___of_add_property_sysfs        ; -- Begin function __of_add_property_sysfs
	.p2align	2
___of_add_property_sysfs:               ; @__of_add_property_sysfs
	.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	x19, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #9
	bl	_strncmp
	mov	x21, x0
Lloh2:
	adrp	x8, _CONFIG_SYSFS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONFIG_SYSFS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_IS_ENABLED
Lloh5:
	adrp	x8, _of_kset@GOTPAGE
Lloh6:
	ldr	x8, [x8, _of_kset@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_of_node_is_attached
	cbz	w0, LBB0_4
; %bb.2:
	add	x22, x20, #4
	mov	x0, x22
	bl	_sysfs_bin_attr_init
	ldr	w1, [x20]
	mov	x0, x19
	bl	_safe_name
	cmp	x21, #0
	mov	w8, #292
	mov	w9, #256
	csel	w8, w9, w8, eq
	stp	w8, w0, [x20, #12]
	cbz	x21, LBB0_5
; %bb.3:
	ldr	w8, [x20, #20]
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	w8, #0
LBB0_6:
Lloh8:
	adrp	x9, _of_node_property_read@GOTPAGE
Lloh9:
	ldr	x9, [x9, _of_node_property_read@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_sysfs_create_bin_file
	mov	x21, x0
	ldr	w2, [x20]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_WARN
LBB0_7:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"security-"

	.comm	_CONFIG_SYSFS,4,2               ; @CONFIG_SYSFS
	.comm	_of_kset,4,2                    ; @of_kset
	.comm	_of_node_property_read,4,2      ; @of_node_property_read
l_.str.1:                               ; @.str.1
	.asciz	"error adding attribute %s to node %pOF\n"

.subsections_via_symbols
