	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_create_sysfs_files
_idt_create_sysfs_files:                ## @idt_create_sysfs_files
	.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	24(%rdi), %r14
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kmalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_bin_attr_eeprom@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	movl	$24, %edx
	callq	_memcpy
	cmpq	$0, 16(%rbx)
	movq	8(%rbx), %rsi
	je	LBB0_4
## %bb.3:
	andb	$127, 16(%rsi)
	movq	$0, 8(%rsi)
LBB0_4:
	movq	(%rbx), %rax
	movq	%rax, (%rsi)
	movq	%r14, %rdi
	callq	_sysfs_create_bin_file
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skip creating sysfs-files"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bin_attr_eeprom,4,2            ## @bin_attr_eeprom
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create EEPROM sysfs-node"

	.no_dead_strip	_idt_create_sysfs_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_create_sysfs_files
_idt_create_sysfs_files:                ; @idt_create_sysfs_files
	.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
	ldr	x19, [x0, #24]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kmalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.2:
Lloh3:
	adrp	x1, _bin_attr_eeprom@GOTPAGE
Lloh4:
	ldr	x1, [x1, _bin_attr_eeprom@GOTPAGEOFF]
	mov	w2, #24
	bl	_memcpy
	ldp	x1, x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x1, #16]
	and	w8, w8, #0xffffff7f
	str	w8, [x1, #16]
	str	xzr, [x1, #8]
LBB0_4:
	ldr	x8, [x20]
	str	x8, [x1]
	mov	x0, x19
	bl	_sysfs_create_bin_file
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w20, #0
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skip creating sysfs-files"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bin_attr_eeprom,4,2            ; @bin_attr_eeprom
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create EEPROM sysfs-node"

	.no_dead_strip	_idt_create_sysfs_files
.subsections_via_symbols
