	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_port_start
_ql_port_start:                         ## @ql_port_start
	.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
	movq	%rdi, %rbx
	movq	_QL_PHY_GIO_SEM_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_QL_RESOURCE_BITS_BASE_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rdi), %eax
	shll	$8, %eax
	shll	$7, %edx
	orl	%eax, %edx
	callq	_ql_sem_spinlock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_ql_is_fiber
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_ql_petbi_init
	jmp	LBB0_5
LBB0_4:
	callq	_ql_phy_init_ex
LBB0_5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ql_sem_unlock
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QL_PHY_GIO_SEM_MASK,4,2        ## @QL_PHY_GIO_SEM_MASK
	.comm	_QL_RESOURCE_BITS_BASE_CODE,4,2 ## @QL_RESOURCE_BITS_BASE_CODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get hw lock for GIO\n"

	.no_dead_strip	_ql_port_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_port_start
_ql_port_start:                         ; @ql_port_start
	.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	x19, x0
Lloh0:
	adrp	x20, _QL_PHY_GIO_SEM_MASK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _QL_PHY_GIO_SEM_MASK@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _QL_RESOURCE_BITS_BASE_CODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QL_RESOURCE_BITS_BASE_CODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x0]
	lsl	w9, w9, #8
	orr	w2, w9, w8, lsl #7
	bl	_ql_sem_spinlock
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_ql_is_fiber
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_ql_petbi_init
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_ql_phy_init_ex
LBB0_5:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ql_sem_unlock
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_QL_PHY_GIO_SEM_MASK,4,2        ; @QL_PHY_GIO_SEM_MASK
	.comm	_QL_RESOURCE_BITS_BASE_CODE,4,2 ; @QL_RESOURCE_BITS_BASE_CODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get hw lock for GIO\n"

	.no_dead_strip	_ql_port_start
.subsections_via_symbols
