	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_status_for_port
_get_status_for_port:                   ## @get_status_for_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_mutex_lock
	movq	%r14, %rdi
	movl	$7, %esi
	movl	%ebx, %edx
	callq	_write_phy_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_read_phy_reg
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.3:
	andl	$15, %ebx
	xorl	%eax, %eax
	cmpl	$14, %ebx
	sete	%al
	addl	%eax, %eax
	incl	%eax
	cmpl	$6, %ebx
	movl	$2, %ebx
	cmovnel	%eax, %ebx
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_status_for_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_status_for_port
_get_status_for_port:                   ; @get_status_for_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, x1
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	mov	w1, #7
	mov	x2, x20
	bl	_write_phy_reg
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #8
	bl	_read_phy_reg
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	and	w8, w20, #0xf
	cmp	w8, #14
	mov	w9, #3
	csinc	w9, w9, wzr, eq
	mov	w10, #2
	cmp	w8, #6
	csel	w8, w10, w9, eq
	tst	w20, #0x80000000
	csel	w20, w20, w8, ne
	b	LBB0_3
LBB0_2:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_status_for_port
.subsections_via_symbols
