	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxe_query_port
_rxe_query_port:                        ## @rxe_query_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
	pushq	%rax
	.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, %r15d
	movq	%rdi, %r12
	callq	_to_rdev
	movq	%rax, %r14
	movups	8(%rax), %xmm0
	movups	%xmm0, (%rbx)
	movq	24(%rax), %rax
	movq	%rax, 16(%rbx)
	leaq	16(%rbx), %r13
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	12(%rbx), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_ib_get_eth_speed
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	_IB_PORT_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_IB_PORT_PHYS_STATE_LINK_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movl	4(%r14), %edi
	callq	_dev_get_flags
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_IB_PORT_PHYS_STATE_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_IB_PORT_PHYS_STATE_POLLING@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORT_ACTIVE,8,3             ## @IB_PORT_ACTIVE
	.comm	_IB_PORT_PHYS_STATE_LINK_UP,4,2 ## @IB_PORT_PHYS_STATE_LINK_UP
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IB_PORT_PHYS_STATE_POLLING,4,2 ## @IB_PORT_PHYS_STATE_POLLING
	.comm	_IB_PORT_PHYS_STATE_DISABLED,4,2 ## @IB_PORT_PHYS_STATE_DISABLED
	.no_dead_strip	_rxe_query_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxe_query_port
_rxe_query_port:                        ; @rxe_query_port
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_to_rdev
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldur	q0, [x0, #8]
	str	q0, [x19]
	mov	x23, x19
	str	x8, [x23, #16]!
	bl	_mutex_lock
	add	x3, x19, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_ib_get_eth_speed
	mov	x21, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _IB_PORT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_PORT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IB_PORT_PHYS_STATE_LINK_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PORT_PHYS_STATE_LINK_UP@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20, #4]
	bl	_dev_get_flags
Lloh5:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _IB_PORT_PHYS_STATE_POLLING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_PORT_PHYS_STATE_POLLING@GOTPAGEOFF]
Lloh10:
	adrp	x10, _IB_PORT_PHYS_STATE_DISABLED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IB_PORT_PHYS_STATE_DISABLED@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORT_ACTIVE,8,3             ; @IB_PORT_ACTIVE
	.comm	_IB_PORT_PHYS_STATE_LINK_UP,4,2 ; @IB_PORT_PHYS_STATE_LINK_UP
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IB_PORT_PHYS_STATE_POLLING,4,2 ; @IB_PORT_PHYS_STATE_POLLING
	.comm	_IB_PORT_PHYS_STATE_DISABLED,4,2 ; @IB_PORT_PHYS_STATE_DISABLED
	.no_dead_strip	_rxe_query_port
.subsections_via_symbols
