	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_reg_write
_smsc911x_reg_write:                    ## @smsc911x_reg_write
	.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	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	movq	_SMSC911X_USE_32BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.3:
	addl	(%rbx), %r15d
	movl	%r14d, %edi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	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:
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movzwl	%r14w, %edi
	movl	(%rbx), %esi
	addl	%r15d, %esi
	callq	_writew
	shrl	$16, %r14d
	movl	(%rbx), %eax
	leal	(%r15,%rax), %esi
	addl	$2, %esi
	movl	%r14d, %edi
	callq	_writew
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	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
.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
_smsc911x_reg_write:                    ; @smsc911x_reg_write
	.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, x2
	mov	x19, x1
	mov	x21, 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	w8, [x21]
	add	w1, w8, w19
	mov	x0, x20
	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	_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:
	add	x22, x21, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	and	w0, w20, #0xffff
	ldr	w8, [x21]
	add	w1, w8, w19
	bl	_writew
	lsr	w0, w20, #16
	ldr	w8, [x21]
	add	w8, w19, w8
	add	w1, w8, #2
	bl	_writew
	mov	x0, x22
	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	_spin_unlock_irqrestore
LBB0_4:
	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	_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
.subsections_via_symbols
