	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disable_port
_disable_port:                          ## @disable_port
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IB_SMP_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rcx
	cmpq	16(%rax), %rcx
	cmovgq	%rax, %rbx
LBB0_2:
	leaq	4(%rbx), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_IB_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ib_port_info_set_port_state
	movq	_IB_PORT_PHYS_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_ib_port_info_set_port_phys_state
	movl	(%rbx), %edi
	callq	_osm_node_get_node_guid
	movl	%eax, -72(%rbp)
	movq	%rbx, %rdi
	callq	_osm_physp_get_port_guid
	movl	%eax, -76(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	%rax, -96(%rbp)
	movq	%rax, -104(%rbp)
	movl	(%rbx), %edi
	callq	_osm_node_get_type
	movq	_IB_NODE_TYPE_SWITCH@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_osm_physp_get_port_num
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_osm_node_get_physp_ptr
	movq	%rax, %r13
	addq	$4, %r13
LBB0_5:
	movq	%r13, %rdi
	callq	_ib_port_info_get_m_key
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_osm_node_get_type
	cmpq	(%r14), %rax
	je	LBB0_9
## %bb.6:
	cmpq	$0, 8(%r12)
	jne	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_osm_physp_get_port_guid
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_osm_get_port_by_guid
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_9:
	movq	%rbx, %rdi
	callq	_osm_physp_get_dr_path_ptr
	movl	%eax, %r14d
	shll	$2, %r15d
	movq	_IB_MAD_ATTR_PORT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_osm_physp_get_port_num
	movq	%rax, %rdi
	callq	_cl_hton32
	movq	_CL_DISP_MSGID_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-104(%rbp), %r10
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	pushq	%r10
	pushq	%rbx
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	movq	_FALSE@GOTPCREL(%rip), %rax
	pushq	(%rax)
	callq	_osm_req_set
	addq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_DATA_SIZE,4,2           ## @IB_SMP_DATA_SIZE
	.comm	_IB_LINK_DOWN,4,2               ## @IB_LINK_DOWN
	.comm	_IB_PORT_PHYS_STATE_DISABLED,4,2 ## @IB_PORT_PHYS_STATE_DISABLED
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_IB_NODE_TYPE_SWITCH,8,3        ## @IB_NODE_TYPE_SWITCH
	.comm	_IB_MAD_ATTR_PORT_INFO,4,2      ## @IB_MAD_ATTR_PORT_INFO
	.comm	_CL_DISP_MSGID_NONE,4,2         ## @CL_DISP_MSGID_NONE
	.no_dead_strip	_disable_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disable_port
_disable_port:                          ; @disable_port
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #48
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _IB_SMP_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_SMP_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	lsl	x8, x24, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x21, #16]
	ldr	x10, [x8, #16]
	cmp	x9, x10
	csel	x21, x8, x21, gt
LBB0_2:
	add	x22, x21, #4
	mov	x0, x20
	mov	x1, x22
	mov	w2, #16
	bl	_memcpy
Lloh8:
	adrp	x8, _IB_LINK_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_LINK_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ib_port_info_set_port_state
Lloh11:
	adrp	x8, _IB_PORT_PHYS_STATE_DISABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_PORT_PHYS_STATE_DISABLED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ib_port_info_set_port_phys_state
	ldr	w0, [x21]
	bl	_osm_node_get_node_guid
	stur	w0, [x29, #-80]
	mov	x0, x21
	bl	_osm_physp_get_port_guid
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x26, _FALSE@GOTPAGE
Lloh18:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	stp	w8, w0, [x29, #-88]
	ldr	x8, [x26]
	stp	x8, x8, [x29, #-104]
	stur	x8, [x29, #-112]
	ldr	w0, [x21]
	bl	_osm_node_get_type
Lloh19:
	adrp	x23, _IB_NODE_TYPE_SWITCH@GOTPAGE
Lloh20:
	ldr	x23, [x23, _IB_NODE_TYPE_SWITCH@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_osm_physp_get_port_num
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_osm_node_get_physp_ptr
	add	x22, x0, #4
LBB0_5:
	mov	x0, x22
	bl	_ib_port_info_get_m_key
	mov	x22, x0
	ldr	w0, [x21]
	bl	_osm_node_get_type
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x23, [x19]
	mov	x0, x21
	bl	_osm_physp_get_port_guid
	mov	x1, x0
	mov	x0, x23
	bl	_osm_get_port_by_guid
	ldr	x8, [x0]
	str	x8, [x20, #8]
LBB0_8:
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_9:
	mov	x0, x21
	bl	_osm_physp_get_dr_path_ptr
	mov	x23, x0
	lsl	w24, w24, #2
Lloh21:
	adrp	x8, _IB_MAD_ATTR_PORT_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_MAD_ATTR_PORT_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_osm_physp_get_port_num
	bl	_cl_hton32
	mov	x5, x0
	ldr	x6, [x26]
Lloh24:
	adrp	x8, _CL_DISP_MSGID_NONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CL_DISP_MSGID_NONE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	sub	sp, sp, #16
	sub	x9, x29, #112
	str	x9, [sp, #8]
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x3, x24
	mov	x4, x25
	mov	x7, x22
	bl	_osm_req_set
	add	sp, sp, #16
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_DATA_SIZE,4,2           ; @IB_SMP_DATA_SIZE
	.comm	_IB_LINK_DOWN,4,2               ; @IB_LINK_DOWN
	.comm	_IB_PORT_PHYS_STATE_DISABLED,4,2 ; @IB_PORT_PHYS_STATE_DISABLED
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_IB_NODE_TYPE_SWITCH,8,3        ; @IB_NODE_TYPE_SWITCH
	.comm	_IB_MAD_ATTR_PORT_INFO,4,2      ; @IB_MAD_ATTR_PORT_INFO
	.comm	_CL_DISP_MSGID_NONE,4,2         ; @CL_DISP_MSGID_NONE
	.no_dead_strip	_disable_port
.subsections_via_symbols
