	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_g2_set_switch_mac    ## -- Begin function mv88e6xxx_g2_set_switch_mac
	.p2align	4, 0x90
_mv88e6xxx_g2_set_switch_mac:           ## @mv88e6xxx_g2_set_switch_mac
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edx
	xorl	%esi, %esi
	callq	_mv88e6xxx_g2_switch_mac_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mv88e6xxx_g2_switch_mac_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_mv88e6xxx_g2_switch_mac_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	12(%rbx), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_mv88e6xxx_g2_switch_mac_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_mv88e6xxx_g2_switch_mac_write
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	movl	$5, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mv88e6xxx_g2_switch_mac_write  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_g2_set_switch_mac    ; -- Begin function mv88e6xxx_g2_set_switch_mac
	.p2align	2
_mv88e6xxx_g2_set_switch_mac:           ; @mv88e6xxx_g2_set_switch_mac
	.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
	ldr	w2, [x1]
	mov	w1, #0
	bl	_mv88e6xxx_g2_switch_mac_write
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #1
	bl	_mv88e6xxx_g2_switch_mac_write
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #2
	bl	_mv88e6xxx_g2_switch_mac_write
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	w1, #3
	bl	_mv88e6xxx_g2_switch_mac_write
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	w1, #4
	bl	_mv88e6xxx_g2_switch_mac_write
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w2, [x20, #20]
	mov	x0, x19
	mov	w1, #5
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mv88e6xxx_g2_switch_mac_write
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
