	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vortex_set_duplex
_vortex_set_duplex:                     ## @vortex_set_duplex
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %esi
	cmpq	$0, 24(%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movl	(%r14), %edx
	movq	24(%r14), %rsi
	movq	32(%r14), %rcx
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	setne	%al
	shll	$8, %eax
LBB0_3:
	testq	%rsi, %rsi
	setne	%bl
	movzwl	%dx, %edx
	shrl	$15, %edx
	orb	%bl, %dl
	movzbl	%dl, %edx
	shll	$5, %edx
	xorl	%esi, %esi
	testq	%rcx, %rcx
	setne	%sil
	shll	$6, %esi
	orl	%edx, %esi
	orl	%eax, %esi
	movq	_Wn3_MAC_Ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$3, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_window_write16                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:  setting %s-duplex.\n"

L_.str.1:                               ## @.str.1
	.asciz	"full"

L_.str.2:                               ## @.str.2
	.asciz	"half"

	.comm	_Wn3_MAC_Ctrl,4,2               ## @Wn3_MAC_Ctrl
	.no_dead_strip	_vortex_set_duplex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vortex_set_duplex
_vortex_set_duplex:                     ; @vortex_set_duplex
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w1, [x20]
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	w9, [x19]
	ldp	x10, x8, [x19, #24]
	cbz	x10, LBB0_3
; %bb.1:
	ldr	x11, [x19, #16]
	cbz	x11, LBB0_4
; %bb.2:
	ldr	x11, [x19, #8]
	cmp	x11, #0
	cset	w11, ne
	lsl	w11, w11, #8
	b	LBB0_4
LBB0_3:
	mov	w11, #0
LBB0_4:
	cmp	x10, #0
	and	w9, w9, #0x8000
	ccmp	w9, #0, #0, eq
	mov	w9, #32
	csel	w9, wzr, w9, eq
	cmp	x8, #0
	cset	w8, ne
	bfi	w9, w8, #6, #1
Lloh6:
	adrp	x8, _Wn3_MAC_Ctrl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Wn3_MAC_Ctrl@GOTPAGEOFF]
	orr	w1, w9, w11
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_window_write16
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:  setting %s-duplex.\n"

l_.str.1:                               ; @.str.1
	.asciz	"full"

l_.str.2:                               ; @.str.2
	.asciz	"half"

	.comm	_Wn3_MAC_Ctrl,4,2               ; @Wn3_MAC_Ctrl
	.no_dead_strip	_vortex_set_duplex
.subsections_via_symbols
