	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_set_xcvr
_smc_set_xcvr:                          ## @smc_set_xcvr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%r14), %r13d
	movq	_BANK_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_SMC_SELECT_BANK
	movl	(%r12), %edi
	cmpl	$2, %ebx
	jne	LBB0_5
## %bb.1:
	movq	_CFG_AUI_SELECT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	callq	_outw
	movq	8(%r12), %rax
	movq	_MANFID_OSITECH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	16(%r12), %rax
	movq	_PRODID_OSITECH_SEVEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_OSI_AUI_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$-16, %r13d
	movq	_OSITECH_AUI_PWR@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r13, %rsi
	callq	_set_bits
LBB0_4:
	cmpq	$1, 8(%r14)
	movl	$2, %eax
	sbbl	$0, %eax
	jmp	LBB0_9
LBB0_5:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	callq	_outw
	movq	8(%r12), %rax
	movq	_MANFID_OSITECH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	16(%r12), %rax
	movq	_PRODID_OSITECH_SEVEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_OSI_AUI_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	addl	$-16, %r13d
	movq	_OSITECH_AUI_PWR@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r13, %rsi
	callq	_mask_bits
LBB0_8:
	cmpq	$0, 8(%r14)
	movl	$18, %ecx
	movl	$16385, %eax                    ## imm = 0x4001
	cmovel	%ecx, %eax
LBB0_9:
	movl	%eax, 24(%r12)
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SMC_SELECT_BANK                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BANK_SELECT,8,3                ## @BANK_SELECT
	.comm	_CFG_AUI_SELECT,4,2             ## @CFG_AUI_SELECT
	.comm	_CONFIG,8,3                     ## @CONFIG
	.comm	_MANFID_OSITECH,8,3             ## @MANFID_OSITECH
	.comm	_PRODID_OSITECH_SEVEN,8,3       ## @PRODID_OSITECH_SEVEN
	.comm	_OSI_AUI_PWR,4,2                ## @OSI_AUI_PWR
	.comm	_OSITECH_AUI_PWR,8,3            ## @OSITECH_AUI_PWR
	.no_dead_strip	_smc_set_xcvr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_set_xcvr
_smc_set_xcvr:                          ; @smc_set_xcvr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w23, [x21]
Lloh0:
	adrp	x8, _BANK_SELECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BANK_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x23
	bl	_inw
	mov	x20, x0
	mov	w0, #1
	bl	_SMC_SELECT_BANK
	ldr	w0, [x19]
	cmp	w22, #2
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _CFG_AUI_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CFG_AUI_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w0
Lloh6:
	adrp	x8, _CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outw
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _MANFID_OSITECH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MANFID_OSITECH@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _PRODID_OSITECH_SEVEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PRODID_OSITECH_SEVEN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _OSI_AUI_PWR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OSI_AUI_PWR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	sub	w8, w23, #16
Lloh18:
	adrp	x9, _OSITECH_AUI_PWR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OSITECH_AUI_PWR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_set_bits
LBB0_4:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	mov	w8, #1
	cinc	w8, w8, ne
	b	LBB0_9
LBB0_5:
Lloh21:
	adrp	x8, _CONFIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outw
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _MANFID_OSITECH@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MANFID_OSITECH@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x9, _PRODID_OSITECH_SEVEN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PRODID_OSITECH_SEVEN@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
Lloh30:
	adrp	x8, _OSI_AUI_PWR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OSI_AUI_PWR@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	mvn	w0, w8
	sub	w8, w23, #16
Lloh33:
	adrp	x9, _OSITECH_AUI_PWR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _OSITECH_AUI_PWR@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mask_bits
LBB0_8:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	mov	w8, #16385
	mov	w9, #18
	csel	w8, w9, w8, eq
LBB0_9:
	str	w8, [x19, #24]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_SMC_SELECT_BANK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_BANK_SELECT,8,3                ; @BANK_SELECT
	.comm	_CFG_AUI_SELECT,4,2             ; @CFG_AUI_SELECT
	.comm	_CONFIG,8,3                     ; @CONFIG
	.comm	_MANFID_OSITECH,8,3             ; @MANFID_OSITECH
	.comm	_PRODID_OSITECH_SEVEN,8,3       ; @PRODID_OSITECH_SEVEN
	.comm	_OSI_AUI_PWR,4,2                ; @OSI_AUI_PWR
	.comm	_OSITECH_AUI_PWR,8,3            ; @OSITECH_AUI_PWR
	.no_dead_strip	_smc_set_xcvr
.subsections_via_symbols
