	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptys_get_active_port
_ptys_get_active_port:                  ## @ptys_get_active_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_be32_to_cpu
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r14d
LBB0_2:
	movq	_MLX4_10GBASE_T@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %r15d
	movq	_MLX4_1000BASE_T@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_MLX4_100BASE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	orl	%ebx, %eax
	testl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_MLX4_10GBASE_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %r15d
	movq	_MLX4_56GBASE_SR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_MLX4_40GBASE_SR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %r15d
	movq	_MLX4_1000BASE_CX_SGMII@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	orl	%r15d, %eax
	orl	%ebx, %eax
	testl	%r14d, %eax
	je	LBB0_6
## %bb.5:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_MLX4_10GBASE_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %r15d
	movq	_MLX4_56GBASE_CR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_MLX4_40GBASE_CR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	orl	%ebx, %eax
	testl	%r14d, %eax
	je	LBB0_8
## %bb.7:
	movq	_PORT_DA@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_MLX4_56GBASE_KR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %r15d
	movq	_MLX4_40GBASE_KR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_MLX4_20GBASE_KR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %r15d
	movq	_MLX4_10GBASE_KR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %ebx
	orl	%r15d, %ebx
	orl	%r12d, %ebx
	movq	_MLX4_10GBASE_KX4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	movl	%eax, %r15d
	movq	_MLX4_1000BASE_KX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX4_PROT_MASK
	orl	%r15d, %eax
	orl	%ebx, %eax
	testl	%r14d, %eax
	jne	LBB0_9
## %bb.10:
	movq	_PORT_OTHER@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_PORT_NONE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_10GBASE_T,4,2             ## @MLX4_10GBASE_T
	.comm	_MLX4_1000BASE_T,4,2            ## @MLX4_1000BASE_T
	.comm	_MLX4_100BASE_TX,4,2            ## @MLX4_100BASE_TX
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_MLX4_10GBASE_SR,4,2            ## @MLX4_10GBASE_SR
	.comm	_MLX4_56GBASE_SR4,4,2           ## @MLX4_56GBASE_SR4
	.comm	_MLX4_40GBASE_SR4,4,2           ## @MLX4_40GBASE_SR4
	.comm	_MLX4_1000BASE_CX_SGMII,4,2     ## @MLX4_1000BASE_CX_SGMII
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_MLX4_10GBASE_CR,4,2            ## @MLX4_10GBASE_CR
	.comm	_MLX4_56GBASE_CR4,4,2           ## @MLX4_56GBASE_CR4
	.comm	_MLX4_40GBASE_CR4,4,2           ## @MLX4_40GBASE_CR4
	.comm	_PORT_DA,4,2                    ## @PORT_DA
	.comm	_MLX4_56GBASE_KR4,4,2           ## @MLX4_56GBASE_KR4
	.comm	_MLX4_40GBASE_KR4,4,2           ## @MLX4_40GBASE_KR4
	.comm	_MLX4_20GBASE_KR2,4,2           ## @MLX4_20GBASE_KR2
	.comm	_MLX4_10GBASE_KR,4,2            ## @MLX4_10GBASE_KR
	.comm	_MLX4_10GBASE_KX4,4,2           ## @MLX4_10GBASE_KX4
	.comm	_MLX4_1000BASE_KX,4,2           ## @MLX4_1000BASE_KX
	.comm	_PORT_NONE,4,2                  ## @PORT_NONE
	.comm	_PORT_OTHER,4,2                 ## @PORT_OTHER
	.no_dead_strip	_ptys_get_active_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptys_get_active_port
_ptys_get_active_port:                  ; @ptys_get_active_port
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_be32_to_cpu
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_be32_to_cpu
	mov	x19, x0
LBB0_2:
Lloh0:
	adrp	x8, _MLX4_10GBASE_T@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_10GBASE_T@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	mov	x20, x0
Lloh3:
	adrp	x8, _MLX4_1000BASE_T@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_1000BASE_T@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w20, w0, w20
Lloh6:
	adrp	x8, _MLX4_100BASE_TX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_100BASE_TX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w8, w20, w0
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh11:
	adrp	x8, _MLX4_10GBASE_SR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX4_10GBASE_SR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	mov	x20, x0
Lloh14:
	adrp	x8, _MLX4_56GBASE_SR4@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX4_56GBASE_SR4@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w20, w0, w20
Lloh17:
	adrp	x8, _MLX4_40GBASE_SR4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MLX4_40GBASE_SR4@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w20, w20, w0
Lloh20:
	adrp	x8, _MLX4_1000BASE_CX_SGMII@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX4_1000BASE_CX_SGMII@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w8, w20, w0
	tst	w8, w19
	b.eq	LBB0_6
; %bb.5:
Lloh23:
	adrp	x8, _PORT_FIBRE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PORT_FIBRE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh25:
	adrp	x8, _MLX4_10GBASE_CR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MLX4_10GBASE_CR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	mov	x20, x0
Lloh28:
	adrp	x8, _MLX4_56GBASE_CR4@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MLX4_56GBASE_CR4@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w20, w0, w20
Lloh31:
	adrp	x8, _MLX4_40GBASE_CR4@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MLX4_40GBASE_CR4@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w8, w20, w0
	tst	w8, w19
	b.eq	LBB0_8
; %bb.7:
Lloh34:
	adrp	x8, _PORT_DA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PORT_DA@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh36:
	adrp	x8, _MLX4_56GBASE_KR4@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MLX4_56GBASE_KR4@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	mov	x20, x0
Lloh39:
	adrp	x8, _MLX4_40GBASE_KR4@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MLX4_40GBASE_KR4@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w20, w0, w20
Lloh42:
	adrp	x8, _MLX4_20GBASE_KR2@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MLX4_20GBASE_KR2@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w20, w20, w0
Lloh45:
	adrp	x8, _MLX4_10GBASE_KR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MLX4_10GBASE_KR@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w20, w20, w0
Lloh48:
	adrp	x8, _MLX4_10GBASE_KX4@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MLX4_10GBASE_KX4@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w20, w20, w0
Lloh51:
	adrp	x8, _MLX4_1000BASE_KX@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MLX4_1000BASE_KX@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	bl	_MLX4_PROT_MASK
	orr	w8, w20, w0
Lloh54:
	adrp	x9, _PORT_NONE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _PORT_NONE@GOTPAGEOFF]
Lloh56:
	adrp	x10, _PORT_OTHER@GOTPAGE
Lloh57:
	ldr	x10, [x10, _PORT_OTHER@GOTPAGEOFF]
	tst	w8, w19
	csel	x8, x10, x9, eq
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_10GBASE_T,4,2             ; @MLX4_10GBASE_T
	.comm	_MLX4_1000BASE_T,4,2            ; @MLX4_1000BASE_T
	.comm	_MLX4_100BASE_TX,4,2            ; @MLX4_100BASE_TX
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_MLX4_10GBASE_SR,4,2            ; @MLX4_10GBASE_SR
	.comm	_MLX4_56GBASE_SR4,4,2           ; @MLX4_56GBASE_SR4
	.comm	_MLX4_40GBASE_SR4,4,2           ; @MLX4_40GBASE_SR4
	.comm	_MLX4_1000BASE_CX_SGMII,4,2     ; @MLX4_1000BASE_CX_SGMII
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_MLX4_10GBASE_CR,4,2            ; @MLX4_10GBASE_CR
	.comm	_MLX4_56GBASE_CR4,4,2           ; @MLX4_56GBASE_CR4
	.comm	_MLX4_40GBASE_CR4,4,2           ; @MLX4_40GBASE_CR4
	.comm	_PORT_DA,4,2                    ; @PORT_DA
	.comm	_MLX4_56GBASE_KR4,4,2           ; @MLX4_56GBASE_KR4
	.comm	_MLX4_40GBASE_KR4,4,2           ; @MLX4_40GBASE_KR4
	.comm	_MLX4_20GBASE_KR2,4,2           ; @MLX4_20GBASE_KR2
	.comm	_MLX4_10GBASE_KR,4,2            ; @MLX4_10GBASE_KR
	.comm	_MLX4_10GBASE_KX4,4,2           ; @MLX4_10GBASE_KX4
	.comm	_MLX4_1000BASE_KX,4,2           ; @MLX4_1000BASE_KX
	.comm	_PORT_NONE,4,2                  ; @PORT_NONE
	.comm	_PORT_OTHER,4,2                 ; @PORT_OTHER
	.no_dead_strip	_ptys_get_active_port
.subsections_via_symbols
