	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_th_output_attributes
_intel_th_output_attributes:            ## @intel_th_output_attributes
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_TH_POSSIBLE_OUTPUTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_output_parms@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r15d
	movl	%eax, %ebx
	imull	%r14d, %ebx
	incl	%ebx
	movq	16(%r13), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	16(%r13), %rdi
	movl	(%r12), %ecx
	movl	%ebx, %esi
	movl	$40, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.3:
	movq	%rax, %rbx
	movl	%r15d, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%ecx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r15d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, %ecx
	je	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	leaq	(%rdx,%r14,8), %r13
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_sysfs_attr_init
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, (%rax,%rcx,8)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 8(%rbx,%r14,8)
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rbx,%r14,8)
	movl	%r12d, 4(%rbx,%r14,8)
	incl	%r12d
	addq	$24, %r15
	cmpq	%r15, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_output_parms@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	16(%rax,%r15), %r8d
	leaq	L_.str(%rip), %rdx
	callq	_devm_kasprintf
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%r12d, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,4), %r14
	movq	%rbx, %rdx
	movq	%rax, 16(%rbx,%r14,8)
	movq	(%r13), %rax
	cmpq	$0, 8(%rax,%r15)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_S_IRUGO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 24(%rdx,%r14,8)
	movq	_output_attr_show@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rdx,%r14,8)
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$0, (%rax,%r15)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rdx,%r14,8)
	movq	_output_attr_store@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdx,%r14,8)
	jmp	LBB0_11
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	movq	16(%r13), %rdi
	movq	%r13, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sysfs_create_group             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TH_POSSIBLE_OUTPUTS,4,2        ## @TH_POSSIBLE_OUTPUTS
	.comm	_output_parms,8,3               ## @output_parms
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d_%s"

	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_output_attr_show,4,2           ## @output_attr_show
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_output_attr_store,4,2          ## @output_attr_store
L_.str.1:                               ## @.str.1
	.asciz	"outputs"

	.no_dead_strip	_intel_th_output_attributes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_th_output_attributes
_intel_th_output_attributes:            ; @intel_th_output_attributes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _TH_POSSIBLE_OUTPUTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TH_POSSIBLE_OUTPUTS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x25, _output_parms@GOTPAGE
Lloh4:
	ldr	x25, [x25, _output_parms@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	mov	x21, x0
	orr	w8, wzr, #0x1
	madd	w22, w0, w20, w8
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x1, x22
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x0, [x19, #16]
	ldr	w3, [x23]
	mov	x1, x22
	mov	w2, #40
	bl	_devm_kcalloc
	cbz	x0, LBB0_13
; %bb.2:
	cmp	w20, #1
	b.lt	LBB0_14
; %bb.3:
	mov	x22, x0
	mov	w26, #0
	mov	w23, #0
	mov	w8, #24
	umull	x8, w21, w8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	w28, #40
	stp	w21, w20, [sp, #8]              ; 8-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	ldp	w21, w20, [sp, #8]              ; 8-byte Folded Reload
	add	w26, w26, w21
	cmp	w23, w20
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	mov	w27, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x25
	bl	_sysfs_attr_init
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x25, [x8, x20, lsl #3]
	madd	x8, x20, x28, x22
	str	x19, [x8, #8]
	stp	w23, w27, [x8]
	add	w27, w27, #1
	add	x24, x24, #24
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x24
	mov	x25, x21
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, #16]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x8, [x25]
	add	x8, x8, x24
	ldr	w4, [x8, #16]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x23
	bl	_devm_kasprintf
	cbz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w20, w26, w27
	mov	x8, x25
	umaddl	x25, w20, w28, x22
	str	x0, [x25, #16]!
	mov	x21, x8
	ldr	x8, [x8]
	add	x9, x8, x24
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh12:
	adrp	x9, _S_IRUGO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S_IRUGO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	madd	x10, x20, x28, x22
	ldr	w11, [x10, #24]
	orr	w9, w11, w9
	str	w9, [x10, #24]
Lloh15:
	adrp	x9, _output_attr_show@GOTPAGE
Lloh16:
	ldr	x9, [x9, _output_attr_show@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x10, #36]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x8, x24]
	cbz	x8, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh18:
	adrp	x8, _S_IWUSR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_IWUSR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	madd	x9, x20, x28, x22
	ldr	w10, [x9, #24]
	orr	w8, w10, w8
	str	w8, [x9, #24]
Lloh21:
	adrp	x8, _output_attr_store@GOTPAGE
Lloh22:
	ldr	x8, [x8, _output_attr_store@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x9, #32]
	b	LBB0_7
LBB0_13:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
Lloh27:
	adrp	x8, l_.str.1@PAGE
Lloh28:
	add	x9, x8, l_.str.1@PAGEOFF
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	x9, x8, [x19]
	ldr	x0, [x19, #16]
	mov	x1, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_sysfs_create_group
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TH_POSSIBLE_OUTPUTS,4,2        ; @TH_POSSIBLE_OUTPUTS
	.comm	_output_parms,8,3               ; @output_parms
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d_%s"

	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_output_attr_show,4,2           ; @output_attr_show
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_output_attr_store,4,2          ; @output_attr_store
l_.str.1:                               ; @.str.1
	.asciz	"outputs"

	.no_dead_strip	_intel_th_output_attributes
.subsections_via_symbols
