	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_create_port_files         ## -- Begin function hfi1_create_port_files
	.p2align	4, 0x90
_hfi1_create_port_files:                ## @hfi1_create_port_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r13d
	callq	_dd_from_ibdev
	movq	%rax, %r12
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	cmpl	%r13d, (%r12)
	jge	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dd_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movq	8(%r12), %rax
	movslq	%r13d, %r14
	decq	%r14
	shlq	$4, %r14
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r14), %r15
	movq	_hfi1_sc2vl_ktype@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dd_dev_err
	jmp	LBB0_19
LBB0_5:
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_kobject_uevent
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %r15
	addq	$4, %r15
	movq	_hfi1_sl2sc_ktype@GOTPCREL(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dd_dev_err
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_7:
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_kobject_uevent
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %r15
	addq	$8, %r15
	movq	_hfi1_vl2mtu_ktype@GOTPCREL(%rip), %rsi
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dd_dev_err
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_9:
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_kobject_uevent
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r14
	addq	$12, %r14
	movq	_port_cc_ktype@GOTPCREL(%rip), %rsi
	leaq	L_.str.7(%rip), %rcx
	movq	%r14, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dd_dev_err
	jmp	LBB0_16
LBB0_11:
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kobject_uevent
	movq	_cc_setting_bin_attr@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_bin_file
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dd_dev_err
	jmp	LBB0_15
LBB0_13:
	movq	_cc_table_bin_attr@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_bin_file
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dd_dev_err
	movq	_cc_setting_bin_attr@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_bin_file
LBB0_15:
	movq	%r14, %rdi
	callq	_kobject_put
LBB0_16:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_kobject_put
LBB0_17:
	movq	%r15, %rdi
	callq	_kobject_put
LBB0_18:
	movq	%r14, %rdi
	callq	_kobject_put
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dd_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping infiniband class with invalid port %u\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_hfi1_sc2vl_ktype,4,2           ## @hfi1_sc2vl_ktype
L_.str.1:                               ## @.str.1
	.asciz	"sc2vl"

L_.str.2:                               ## @.str.2
	.asciz	"Skipping sc2vl sysfs info, (err %d) port %u\n"

	.comm	_KOBJ_ADD,4,2                   ## @KOBJ_ADD
	.comm	_hfi1_sl2sc_ktype,4,2           ## @hfi1_sl2sc_ktype
L_.str.3:                               ## @.str.3
	.asciz	"sl2sc"

L_.str.4:                               ## @.str.4
	.asciz	"Skipping sl2sc sysfs info, (err %d) port %u\n"

	.comm	_hfi1_vl2mtu_ktype,4,2          ## @hfi1_vl2mtu_ktype
L_.str.5:                               ## @.str.5
	.asciz	"vl2mtu"

L_.str.6:                               ## @.str.6
	.asciz	"Skipping vl2mtu sysfs info, (err %d) port %u\n"

	.comm	_port_cc_ktype,4,2              ## @port_cc_ktype
L_.str.7:                               ## @.str.7
	.asciz	"CCMgtA"

L_.str.8:                               ## @.str.8
	.asciz	"Skipping Congestion Control sysfs info, (err %d) port %u\n"

	.comm	_cc_setting_bin_attr,4,2        ## @cc_setting_bin_attr
L_.str.9:                               ## @.str.9
	.asciz	"Skipping Congestion Control setting sysfs info, (err %d) port %u\n"

	.comm	_cc_table_bin_attr,4,2          ## @cc_table_bin_attr
L_.str.10:                              ## @.str.10
	.asciz	"Skipping Congestion Control table sysfs info, (err %d) port %u\n"

L_.str.11:                              ## @.str.11
	.asciz	"Congestion Control Agent enabled for port %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_create_port_files         ; -- Begin function hfi1_create_port_files
	.p2align	2
_hfi1_create_port_files:                ; @hfi1_create_port_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x25, x2
	mov	x22, x1
	bl	_dd_from_ibdev
	mov	x20, x0
	cbz	w22, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w22
	b.ge	LBB0_3
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dd_dev_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
LBB0_3:
	ldr	x24, [x20, #8]
	sxtw	x8, w22
	sub	x26, x8, #1
	add	x19, x24, x26, lsl #4
Lloh5:
	adrp	x1, _hfi1_sc2vl_ktype@GOTPAGE
Lloh6:
	ldr	x1, [x1, _hfi1_sc2vl_ktype@GOTPAGEOFF]
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x25
	bl	_kobject_init_and_add
	cbz	w0, LBB0_5
; %bb.4:
	mov	x23, x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dd_dev_err
	b	LBB0_19
LBB0_5:
Lloh11:
	adrp	x27, _KOBJ_ADD@GOTPAGE
Lloh12:
	ldr	x27, [x27, _KOBJ_ADD@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_kobject_uevent
	add	x21, x19, #4
Lloh13:
	adrp	x1, _hfi1_sl2sc_ktype@GOTPAGE
Lloh14:
	ldr	x1, [x1, _hfi1_sl2sc_ktype@GOTPAGEOFF]
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x25
	bl	_kobject_init_and_add
	cbz	w0, LBB0_7
; %bb.6:
	mov	x23, x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dd_dev_err
	b	LBB0_18
LBB0_7:
	ldr	w1, [x27]
	mov	x0, x21
	bl	_kobject_uevent
	add	x26, x24, x26, lsl #4
	add	x24, x26, #8
Lloh19:
	adrp	x1, _hfi1_vl2mtu_ktype@GOTPAGE
Lloh20:
	ldr	x1, [x1, _hfi1_vl2mtu_ktype@GOTPAGEOFF]
Lloh21:
	adrp	x3, l_.str.5@PAGE
Lloh22:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x24
	mov	x2, x25
	bl	_kobject_init_and_add
	cbz	w0, LBB0_9
; %bb.8:
	mov	x23, x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dd_dev_err
	b	LBB0_17
LBB0_9:
	ldr	w1, [x27]
	mov	x0, x24
	bl	_kobject_uevent
	add	x26, x26, #12
Lloh25:
	adrp	x1, _port_cc_ktype@GOTPAGE
Lloh26:
	ldr	x1, [x1, _port_cc_ktype@GOTPAGEOFF]
Lloh27:
	adrp	x3, l_.str.7@PAGE
Lloh28:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x26
	mov	x2, x25
	bl	_kobject_init_and_add
	cbz	w0, LBB0_11
; %bb.10:
	mov	x23, x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dd_dev_err
	b	LBB0_16
LBB0_11:
	ldr	w1, [x27]
	mov	x0, x26
	bl	_kobject_uevent
Lloh31:
	adrp	x1, _cc_setting_bin_attr@GOTPAGE
Lloh32:
	ldr	x1, [x1, _cc_setting_bin_attr@GOTPAGEOFF]
	mov	x0, x26
	bl	_sysfs_create_bin_file
	cbz	w0, LBB0_13
; %bb.12:
	mov	x23, x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh33:
	adrp	x1, l_.str.9@PAGE
Lloh34:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dd_dev_err
	b	LBB0_15
LBB0_13:
Lloh35:
	adrp	x1, _cc_table_bin_attr@GOTPAGE
Lloh36:
	ldr	x1, [x1, _cc_table_bin_attr@GOTPAGEOFF]
	mov	x0, x26
	bl	_sysfs_create_bin_file
	mov	x23, x0
	cbz	w0, LBB0_20
; %bb.14:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh37:
	adrp	x1, l_.str.10@PAGE
Lloh38:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dd_dev_err
Lloh39:
	adrp	x1, _cc_setting_bin_attr@GOTPAGE
Lloh40:
	ldr	x1, [x1, _cc_setting_bin_attr@GOTPAGEOFF]
	mov	x0, x26
	bl	_sysfs_remove_bin_file
LBB0_15:
	mov	x0, x26
	bl	_kobject_put
LBB0_16:
	mov	x0, x24
	bl	_kobject_put
LBB0_17:
	mov	x0, x21
	bl	_kobject_put
LBB0_18:
	mov	x0, x19
	bl	_kobject_put
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
Lloh41:
	adrp	x1, l_.str.11@PAGE
Lloh42:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dd_dev_info
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping infiniband class with invalid port %u\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_hfi1_sc2vl_ktype,4,2           ; @hfi1_sc2vl_ktype
l_.str.1:                               ; @.str.1
	.asciz	"sc2vl"

l_.str.2:                               ; @.str.2
	.asciz	"Skipping sc2vl sysfs info, (err %d) port %u\n"

	.comm	_KOBJ_ADD,4,2                   ; @KOBJ_ADD
	.comm	_hfi1_sl2sc_ktype,4,2           ; @hfi1_sl2sc_ktype
l_.str.3:                               ; @.str.3
	.asciz	"sl2sc"

l_.str.4:                               ; @.str.4
	.asciz	"Skipping sl2sc sysfs info, (err %d) port %u\n"

	.comm	_hfi1_vl2mtu_ktype,4,2          ; @hfi1_vl2mtu_ktype
l_.str.5:                               ; @.str.5
	.asciz	"vl2mtu"

l_.str.6:                               ; @.str.6
	.asciz	"Skipping vl2mtu sysfs info, (err %d) port %u\n"

	.comm	_port_cc_ktype,4,2              ; @port_cc_ktype
l_.str.7:                               ; @.str.7
	.asciz	"CCMgtA"

l_.str.8:                               ; @.str.8
	.asciz	"Skipping Congestion Control sysfs info, (err %d) port %u\n"

	.comm	_cc_setting_bin_attr,4,2        ; @cc_setting_bin_attr
l_.str.9:                               ; @.str.9
	.asciz	"Skipping Congestion Control setting sysfs info, (err %d) port %u\n"

	.comm	_cc_table_bin_attr,4,2          ; @cc_table_bin_attr
l_.str.10:                              ; @.str.10
	.asciz	"Skipping Congestion Control table sysfs info, (err %d) port %u\n"

l_.str.11:                              ; @.str.11
	.asciz	"Congestion Control Agent enabled for port %d\n"

.subsections_via_symbols
