	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8327_get_port_init_status
_ar8327_get_port_init_status:           ## @ar8327_get_port_init_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, 32(%rdi)
	je	LBB0_1
## %bb.2:
	movq	_AR8216_PORT_STATUS_TXMAC@GOTPCREL(%rip), %rdx
	movq	_AR8216_PORT_STATUS_RXMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	cmpq	$0, 24(%rdi)
	movl	$0, %esi
	je	LBB0_4
## %bb.3:
	movq	_AR8216_PORT_STATUS_DUPLEX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_4:
	orl	(%rdx), %eax
	cmpq	$0, 16(%rdi)
	movl	$0, %edx
	je	LBB0_6
## %bb.5:
	movq	_AR8216_PORT_STATUS_RXFLOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%esi, %eax
	cmpq	$0, 8(%rdi)
	je	LBB0_8
## %bb.7:
	movq	_AR8216_PORT_STATUS_TXFLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	orl	%ecx, %edx
	orl	%edx, %eax
	movl	(%rdi), %ecx
	cmpl	$128, %ecx
	je	LBB0_13
## %bb.9:
	cmpl	$129, %ecx
	je	LBB0_12
## %bb.10:
	cmpl	$130, %ecx
	jne	LBB0_15
## %bb.11:
	movq	_AR8216_PORT_SPEED_10M@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_1:
	movq	_AR8216_PORT_STATUS_LINK_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_13:
	movq	_AR8216_PORT_SPEED_1000M@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	movq	_AR8216_PORT_SPEED_100M@GOTPCREL(%rip), %rcx
LBB0_14:
	orl	(%rcx), %eax
LBB0_15:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR8216_PORT_STATUS_LINK_AUTO,4,2 ## @AR8216_PORT_STATUS_LINK_AUTO
	.comm	_AR8216_PORT_STATUS_TXMAC,4,2   ## @AR8216_PORT_STATUS_TXMAC
	.comm	_AR8216_PORT_STATUS_RXMAC,4,2   ## @AR8216_PORT_STATUS_RXMAC
	.comm	_AR8216_PORT_STATUS_DUPLEX,4,2  ## @AR8216_PORT_STATUS_DUPLEX
	.comm	_AR8216_PORT_STATUS_RXFLOW,4,2  ## @AR8216_PORT_STATUS_RXFLOW
	.comm	_AR8216_PORT_STATUS_TXFLOW,4,2  ## @AR8216_PORT_STATUS_TXFLOW
	.comm	_AR8216_PORT_SPEED_10M,4,2      ## @AR8216_PORT_SPEED_10M
	.comm	_AR8216_PORT_SPEED_100M,4,2     ## @AR8216_PORT_SPEED_100M
	.comm	_AR8216_PORT_SPEED_1000M,4,2    ## @AR8216_PORT_SPEED_1000M
	.no_dead_strip	_ar8327_get_port_init_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8327_get_port_init_status
_ar8327_get_port_init_status:           ; @ar8327_get_port_init_status
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0, #32]
	cbz	w9, LBB0_5
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x9, _AR8216_PORT_STATUS_TXMAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR8216_PORT_STATUS_TXMAC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _AR8216_PORT_STATUS_RXMAC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AR8216_PORT_STATUS_RXMAC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	x10, [x0, #24]
Lloh6:
	adrp	x11, _AR8216_PORT_STATUS_DUPLEX@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AR8216_PORT_STATUS_DUPLEX@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	x10, #0
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
Lloh9:
	adrp	x10, _AR8216_PORT_STATUS_RXFLOW@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AR8216_PORT_STATUS_RXFLOW@GOTPAGEOFF]
	ldp	x12, x11, [x0, #8]
	cmp	x11, #0
Lloh11:
	ldr	w10, [x10]
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _AR8216_PORT_STATUS_TXFLOW@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AR8216_PORT_STATUS_TXFLOW@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x12, #0
	csel	w10, wzr, w10, eq
	orr	w0, w9, w10
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.4:
Lloh15:
	adrp	x8, _AR8216_PORT_SPEED_10M@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR8216_PORT_SPEED_10M@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh17:
	adrp	x8, _AR8216_PORT_STATUS_LINK_AUTO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR8216_PORT_STATUS_LINK_AUTO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh20:
	adrp	x8, _AR8216_PORT_SPEED_1000M@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AR8216_PORT_SPEED_1000M@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh22:
	adrp	x8, _AR8216_PORT_SPEED_100M@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AR8216_PORT_SPEED_100M@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AR8216_PORT_STATUS_LINK_AUTO,4,2 ; @AR8216_PORT_STATUS_LINK_AUTO
	.comm	_AR8216_PORT_STATUS_TXMAC,4,2   ; @AR8216_PORT_STATUS_TXMAC
	.comm	_AR8216_PORT_STATUS_RXMAC,4,2   ; @AR8216_PORT_STATUS_RXMAC
	.comm	_AR8216_PORT_STATUS_DUPLEX,4,2  ; @AR8216_PORT_STATUS_DUPLEX
	.comm	_AR8216_PORT_STATUS_RXFLOW,4,2  ; @AR8216_PORT_STATUS_RXFLOW
	.comm	_AR8216_PORT_STATUS_TXFLOW,4,2  ; @AR8216_PORT_STATUS_TXFLOW
	.comm	_AR8216_PORT_SPEED_10M,4,2      ; @AR8216_PORT_SPEED_10M
	.comm	_AR8216_PORT_SPEED_100M,4,2     ; @AR8216_PORT_SPEED_100M
	.comm	_AR8216_PORT_SPEED_1000M,4,2    ; @AR8216_PORT_SPEED_1000M
	.no_dead_strip	_ar8327_get_port_init_status
.subsections_via_symbols
