	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qca8k_port_set_status
_qca8k_port_set_status:                 ## @qca8k_port_set_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_QCA8K_PORT_STATUS_TXMAC@GOTPCREL(%rip), %rax
	movq	_QCA8K_PORT_STATUS_RXMAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	%edx, %r15d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	leal	-1(%rsi), %ecx
	xorl	%eax, %eax
	cmpl	$5, %ecx
	jae	LBB0_2
## %bb.1:
	movq	_QCA8K_PORT_STATUS_LINK_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %ebx
	movl	%esi, %edi
	callq	_QCA8K_REG_PORT_STATUS
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qca8k_reg_set                  ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qca8k_reg_clear                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QCA8K_PORT_STATUS_TXMAC,4,2    ## @QCA8K_PORT_STATUS_TXMAC
	.comm	_QCA8K_PORT_STATUS_RXMAC,4,2    ## @QCA8K_PORT_STATUS_RXMAC
	.comm	_QCA8K_PORT_STATUS_LINK_AUTO,4,2 ## @QCA8K_PORT_STATUS_LINK_AUTO
	.no_dead_strip	_qca8k_port_set_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qca8k_port_set_status
_qca8k_port_set_status:                 ; @qca8k_port_set_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _QCA8K_PORT_STATUS_TXMAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCA8K_PORT_STATUS_TXMAC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _QCA8K_PORT_STATUS_RXMAC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QCA8K_PORT_STATUS_RXMAC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	sub	w9, w1, #1
Lloh6:
	adrp	x10, _QCA8K_PORT_STATUS_LINK_AUTO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _QCA8K_PORT_STATUS_LINK_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, #5
	csel	w9, w10, wzr, lo
	orr	w20, w8, w9
	mov	x0, x1
	bl	_QCA8K_REG_PORT_STATUS
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	cbz	w21, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_qca8k_reg_set
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_qca8k_reg_clear
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QCA8K_PORT_STATUS_TXMAC,4,2    ; @QCA8K_PORT_STATUS_TXMAC
	.comm	_QCA8K_PORT_STATUS_RXMAC,4,2    ; @QCA8K_PORT_STATUS_RXMAC
	.comm	_QCA8K_PORT_STATUS_LINK_AUTO,4,2 ; @QCA8K_PORT_STATUS_LINK_AUTO
	.no_dead_strip	_qca8k_port_set_status
.subsections_via_symbols
