	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __smsc911x_reg_write_shift
___smsc911x_reg_write_shift:            ## @__smsc911x_reg_write_shift
	.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	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	8(%rdi), %eax
	movq	_SMSC911X_USE_32BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.3:
	movq	(%r12), %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	___smsc_shift
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_1:
	movq	_SMSC911X_USE_16BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.4:
	movzwl	%r14w, %r13d
	movq	(%r12), %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	___smsc_shift
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writew
	shrl	$16, %r14d
	movq	(%r12), %rbx
	addl	$2, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	___smsc_shift
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writew                         ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMSC911X_USE_32BIT,4,2         ## @SMSC911X_USE_32BIT
	.comm	_SMSC911X_USE_16BIT,4,2         ## @SMSC911X_USE_16BIT
	.no_dead_strip	___smsc911x_reg_write_shift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __smsc911x_reg_write_shift
___smsc911x_reg_write_shift:            ; @__smsc911x_reg_write_shift
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _SMSC911X_USE_32BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMSC911X_USE_32BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x22, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	___smsc_shift
	add	x1, x0, x22
	mov	x0, x19
	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	_writel
LBB0_2:
Lloh3:
	adrp	x9, _SMSC911X_USE_16BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMSC911X_USE_16BIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	and	w22, w19, #0xffff
	ldr	x23, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	___smsc_shift
	add	x1, x0, x23
	mov	x0, x22
	bl	_writew
	lsr	w19, w19, #16
	ldr	x22, [x20]
	add	w1, w21, #2
	mov	x0, x20
	bl	___smsc_shift
	add	x1, x0, x22
	mov	x0, x19
	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	_writew
LBB0_4:
	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	_BUG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SMSC911X_USE_32BIT,4,2         ; @SMSC911X_USE_32BIT
	.comm	_SMSC911X_USE_16BIT,4,2         ; @SMSC911X_USE_16BIT
	.no_dead_strip	___smsc911x_reg_write_shift
.subsections_via_symbols
