	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __smsc911x_reg_read_shift
___smsc911x_reg_read_shift:             ## @__smsc911x_reg_read_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	8(%rdi), %eax
	movq	_SMSC911X_USE_32BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.5:
	movq	(%r15), %rbx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	___smsc_shift
	addq	%rax, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readl                          ## TAILCALL
LBB0_1:
	movq	_SMSC911X_USE_16BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rbx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	___smsc_shift
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readw
	movzwl	%ax, %r12d
	movq	(%r15), %rbx
	addl	$2, %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	___smsc_shift
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readw
	movl	%eax, %ebx
	shll	$16, %ebx
	orl	%r12d, %ebx
	jmp	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUG
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_read_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_read_shift
___smsc911x_reg_read_shift:             ; @__smsc911x_reg_read_shift
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, 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	x21, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	___smsc_shift
	add	x0, x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_readl
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:
	ldr	x21, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	___smsc_shift
	add	x0, x0, x21
	bl	_readw
	mov	x21, x0
	ldr	x22, [x19]
	add	w1, w20, #2
	mov	x0, x19
	bl	___smsc_shift
	add	x0, x0, x22
	bl	_readw
	bfi	w21, w0, #16, #16
	b	LBB0_5
LBB0_4:
	bl	_BUG
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.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_read_shift
.subsections_via_symbols
