	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i7core_create_sysfs_devices
_i7core_create_sysfs_devices:           ## @i7core_create_sysfs_devices
	.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	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_addrmatch_type@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	movl	(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rax, %rdi
	callq	_device_initialize
	movq	(%r15), %rdi
	movq	%rbx, (%rdi)
	leaq	L_.str(%rip), %rsi
	callq	_dev_set_name
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	(%r15), %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_edac_dbg
	movq	(%r15), %rdi
	callq	_device_add
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	cmpl	$0, 16(%r15)
	jne	LBB0_11
## %bb.5:
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_all_channel_counts_type@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	movl	(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rax, %rdi
	callq	_device_initialize
	movq	8(%r15), %rdi
	movq	%rbx, (%rdi)
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_set_name
	movq	8(%r15), %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	8(%r15), %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_edac_dbg
	movq	8(%r15), %rdi
	callq	_device_add
	testl	%eax, %eax
	jns	LBB0_11
## %bb.8:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	callq	_put_device
	movl	%ebx, %r14d
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movq	(%r15), %rdi
	callq	_device_del
LBB0_10:
	movq	(%r15), %rdi
	callq	_put_device
LBB0_11:
	movl	%r14d, %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	_addrmatch_type,4,2             ## @addrmatch_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inject_addrmatch"

L_.str.1:                               ## @.str.1
	.asciz	"creating %s\n"

	.comm	_all_channel_counts_type,4,2    ## @all_channel_counts_type
L_.str.2:                               ## @.str.2
	.asciz	"all_channel_counts"

	.no_dead_strip	_i7core_create_sysfs_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i7core_create_sysfs_devices
_i7core_create_sysfs_devices:           ; @i7core_create_sysfs_devices
	.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	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kzalloc
	str	x0, [x21]
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _addrmatch_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _addrmatch_type@GOTPAGEOFF]
	str	x8, [x0, #16]
	ldr	w8, [x19]
	str	w8, [x0, #8]
	bl	_device_initialize
	ldr	x0, [x21]
	str	x19, [x0]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_set_name
	ldr	x0, [x21]
	mov	x1, x19
	bl	_dev_set_drvdata
	ldr	x0, [x21]
	bl	_dev_name
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	ldr	x0, [x21]
	bl	_device_add
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_6
LBB0_3:
	mov	w20, #0
	b	LBB0_12
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_5:
	mov	x20, x0
	b	LBB0_11
LBB0_6:
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kzalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_9
; %bb.7:
Lloh11:
	adrp	x8, _all_channel_counts_type@GOTPAGE
Lloh12:
	ldr	x8, [x8, _all_channel_counts_type@GOTPAGEOFF]
	str	x8, [x0, #16]
	ldr	w8, [x19]
	str	w8, [x0, #8]
	bl	_device_initialize
	ldr	x0, [x21, #8]
	str	x19, [x0]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_set_name
	ldr	x0, [x21, #8]
	mov	x1, x19
	bl	_dev_set_drvdata
	ldr	x0, [x21, #8]
	bl	_dev_name
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	ldr	x0, [x21, #8]
	bl	_device_add
	tbz	w0, #31, LBB0_3
; %bb.8:
	mov	x20, x0
	ldr	x0, [x21, #8]
	bl	_put_device
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	ldr	x0, [x21]
	bl	_device_del
LBB0_11:
	ldr	x0, [x21]
	bl	_put_device
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_addrmatch_type,4,2             ; @addrmatch_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inject_addrmatch"

l_.str.1:                               ; @.str.1
	.asciz	"creating %s\n"

	.comm	_all_channel_counts_type,4,2    ; @all_channel_counts_type
l_.str.2:                               ; @.str.2
	.asciz	"all_channel_counts"

	.no_dead_strip	_i7core_create_sysfs_devices
.subsections_via_symbols
