	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_get_settings
_niu_get_settings:                      ## @niu_get_settings
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	4(%rbx), %eax
	movl	%eax, 28(%r14)
	movl	24(%rbx), %eax
	movl	%eax, 24(%r14)
	movups	8(%rbx), %xmm0
	movups	%xmm0, 8(%r14)
	movl	(%rbx), %eax
	movq	_NIU_FLAGS_FIBER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_PORT_TP@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r14)
	movq	_NIU_FLAGS_XCVR_SERDES@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_XCVR_INTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_XCVR_EXTERNAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIU_FLAGS_FIBER,4,2            ## @NIU_FLAGS_FIBER
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_NIU_FLAGS_XCVR_SERDES,4,2      ## @NIU_FLAGS_XCVR_SERDES
	.comm	_XCVR_EXTERNAL,4,2              ## @XCVR_EXTERNAL
	.comm	_XCVR_INTERNAL,4,2              ## @XCVR_INTERNAL
	.no_dead_strip	_niu_get_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_get_settings
_niu_get_settings:                      ; @niu_get_settings
	.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, x1
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x20, #4]
	ldr	w9, [x20, #24]
	stp	w9, w8, [x19, #24]
	ldur	q0, [x20, #8]
	stur	q0, [x19, #8]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _NIU_FLAGS_FIBER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NIU_FLAGS_FIBER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _PORT_FIBRE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PORT_FIBRE@GOTPAGEOFF]
Lloh5:
	adrp	x11, _PORT_TP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PORT_TP@GOTPAGEOFF]
	tst	w9, w8
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	str	w9, [x19, #4]
Lloh7:
	adrp	x9, _NIU_FLAGS_XCVR_SERDES@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NIU_FLAGS_XCVR_SERDES@GOTPAGEOFF]
Lloh9:
	adrp	x10, _XCVR_EXTERNAL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _XCVR_EXTERNAL@GOTPAGEOFF]
Lloh11:
	adrp	x11, _XCVR_INTERNAL@GOTPAGE
Lloh12:
	ldr	x11, [x11, _XCVR_INTERNAL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh13
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIU_FLAGS_FIBER,4,2            ; @NIU_FLAGS_FIBER
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_NIU_FLAGS_XCVR_SERDES,4,2      ; @NIU_FLAGS_XCVR_SERDES
	.comm	_XCVR_EXTERNAL,4,2              ; @XCVR_EXTERNAL
	.comm	_XCVR_INTERNAL,4,2              ; @XCVR_INTERNAL
	.no_dead_strip	_niu_get_settings
.subsections_via_symbols
